Please help me in integrating grapesjs with graphQL
Question
Hi Guys,
Can you help me out on how to query urlStore, urlLoad instead of using rest api call, we need to use graphQL.
In GraphQL we will have only one global end point URL, but to save/retrieve the data we need to use the graphQuery Language, like:
(here we are using Angular integrated with apollo to work with graphQL) onInit we are querying and subscribing to the response.
ngOnInit() {
this.apollo.watchQuery({
query: gql `
query getGrapesContent {
getGrapes(id:"Z3JhcGVzOjE=") {
Name
Html
Css
}
}
`;
}).valueChanges.subscribe((response) => {
// 5
this.Html = response.data.Html;
this.Css = response.data.Css;
});
}
}
Can you help us how can we use this logic with grapesJs.Answers (2)
Try to implement a custom Storage Manager https://github.com/artf/grapesjs/wiki/API-Storage-Manager#add
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Related Questions and Answers
Continue research with similar issue discussions.
Issue #1360
[Question/bug] Need help saving data to Blackbaud database.
I'm trying to embed this into Blackbaud Internet Solutions using a Custom Content Part. Can someone help me figure out how to setup the sto...
Issue #605
How we can save HTML
How we can save HTML without using editor.getHtml() and replace function. As, when we are using this in image upload then the existing vide...
Issue #911
Could some one please help me with Custom Load.
What I can use instead of followings- editor.setHtml( arrdata['html'] ), editor.setCss( arrdata['css'] ), In below code.
Issue #838
[QUESTION] How do I save the images to database?
Please do bare with me but it's really hard to understand the documentation. Can you guys help me do do this?
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.