What is the origin of GraphQL’s term “fieldAST”

What is the origin of GraphQL’s term “fieldAST”

I am working through all the GraphQL stuff I can find and have been using a variable called fieldAST which sets up a projection–in formal database terms–across the properties of the object being queried or mutated.
I … Read the rest “What is the origin of GraphQL’s term “fieldAST””

Is is possible to skip part of a query with apollo-client

Is is possible to skip part of a query with apollo-client

I’m trying to perform 3 unique searches inside one query. The problem is that my search “filter” type is mandatory in the schema but in the front-end it’s optional. If a null value is … Read the rest “Is is possible to skip part of a query with apollo-client”

How does one set up (database, or other) context in a GraphQL resolver?

How does one set up (database, or other) context in a GraphQL resolver?

The GraphQL docs give an example of a resolver function that accepts an argument called “context”.
They have to say this about it –

context A value which is provided to every … Read the rest “How does one set up (database, or other) context in a GraphQL resolver?”

Graphql Absinthe Elixir permission based accessible fields

Graphql Absinthe Elixir permission based accessible fields

What is the proper way to define fields that may not be accessible to all users.
For example, a general user can query the users and find out another users handle, but only admin users can find out … Read the rest “Graphql Absinthe Elixir permission based accessible fields”

Is GraphQL having a single endpoint a bottleneck?

Is GraphQL having a single endpoint a bottleneck?

I’m trying to understand if GraphQL is a good architectural decision for large-scale apps.
One thing that caught my eye is the fact that it uses a single endpoint for all requests.
From http://graphql.org

Access the full … Read the rest “Is GraphQL having a single endpoint a bottleneck?”