added basic graphql mapping
This commit is contained in:
@ -12,5 +12,10 @@
|
||||
<p>{todo.text}</p>
|
||||
{/each}
|
||||
{/if}
|
||||
<br />
|
||||
dataTest:
|
||||
{#if $me.x}
|
||||
{JSON.stringify($me.x)}
|
||||
{/if}
|
||||
</section>
|
||||
</div>
|
||||
|
@ -59,6 +59,15 @@
|
||||
if (component.data?.map) {
|
||||
subscribeAndMapQueries(component.id, component.data.map);
|
||||
}
|
||||
if (component.data?.gql) {
|
||||
getComposerStore(component.id).update((storeValue) => ({
|
||||
...storeValue,
|
||||
x: {
|
||||
...storeValue.x,
|
||||
...component.data.gql
|
||||
}
|
||||
}));
|
||||
}
|
||||
}
|
||||
getComposerStore(component.id).update((storeValue) => ({
|
||||
...storeValue,
|
||||
|
Reference in New Issue
Block a user