You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This would kick off a predefined GraphQL query to the provided GraphQL endpoint which would retrieve all the documents of the provided's IStorage's address. The function would then use the response from the GraphQL endpoint to pass documents along to ingestDocument.
It would also need to push all the documents from IStorage to the GraphQL endpoint. This would probably need a new push mutation intended for pushing many documents at a time.
For now this would be an inefficient sync like the base earthstar package has, but once the schema adds support for document filtering we can begin to open up efficient syncing methods.
The text was updated successfully, but these errors were encountered:
Add a function with the following signature to this package's exports:
syncGraphQL(storage: IStorage, graphqlUrl: string)
This would kick off a predefined GraphQL query to the provided GraphQL endpoint which would retrieve all the documents of the provided's
IStorage
's address. The function would then use the response from the GraphQL endpoint to pass documents along toingestDocument
.It would also need to push all the documents from
IStorage
to the GraphQL endpoint. This would probably need a newpush
mutation intended for pushing many documents at a time.For now this would be an inefficient sync like the base
earthstar
package has, but once the schema adds support for document filtering we can begin to open up efficient syncing methods.The text was updated successfully, but these errors were encountered: