Where the data is Storing in Graphql
Asked Answered
T

3

14

I started to use graphQl with react relay. And I followed some tutorials and I can able to get and post with the help of mutations and queries. Everything works fine but my question here is,

  • Where qraphql is saving the data and fetching that for us

for example: If I get data from database mean's I can go through into particular DB/ TABLE. Likewise, i want to know where graphql is storing the data.

i searched many sites, They are telling how to use qraphql but I cant able to find an answer to my question. I need clarification in this area. Can someone help me out with this.

Tetrastichous answered 31/1, 2018 at 20:20 Comment(0)
C
11

GraphQL is a query language for your API, and a server-side runtime for executing queries by using a type system you define for your data. GraphQL isn't tied to any specific database or storage engine and is instead backed by your existing code and data.

You can connect any database using GraphQL. As I understand you are trying the mutation and queries with some hosted engines.

Please go through this reference and set up the GraphQL engine on your side.

Cockcrow answered 3/2, 2018 at 3:25 Comment(0)
W
3

GraphQL, unlike a database level query languages like SQL, is an application level query language. It's up to programmer to create necessary logic - in most server implementations realized by using resolver functions - to make a domain described by GraphQL Schema a reality. This includes any form of persistence.

Wolk answered 1/2, 2018 at 7:54 Comment(0)
G
1

The GraphQL is using localStorage provided by your browser by default if there is no other storage are provided.

Gerrit answered 11/3, 2020 at 20:29 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.