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
{{ message }}
This repository was archived by the owner on Oct 17, 2020. It is now read-only.
constuser=awaituserBinding.query.user({ id:args.id }, addFragmentToInfo(info, 'fragment EnsureEmail on User { email }'), { context })
254
+
constuser=awaitexampleBinding.query.user({ id:args.id }, addFragmentToInfo(info, 'fragment EnsureEmail on User { email }'), { context })
253
255
254
256
return user
255
257
}
@@ -264,10 +266,45 @@ The `Options` type has two fields:
264
266
265
267
### Transforms
266
268
267
-
Coming soon
269
+
Schema transforms are a tool for making modified copies of GraphQLSchema objects, while preserving the possibility of delegating back to original schema.
270
+
271
+
Transforms are useful when working with remote schemas, building GraphQL gateways, and working with GraphQL microservices.
272
+
273
+
More information on `transforms` can be found [here](https://www.apollographql.com/docs/graphql-tools/schema-transforms.html)
268
274
269
-
<!-- > [Learn more about the `info` object.](https://blog.graph.cool/graphql-server-basics-demystifying-the-info-argument-in-graphql-resolvers-6f26249f613a) -->
270
275
271
276
### Context
272
277
273
-
Coming soon
278
+
In GraphQL APIs, context can be provided to every resolver that holds important contextual information like the currently logged in user, or access to a database. Utilizing context is extremely crucial for bindings to GraphQL servers that may inherit context from a HTTP request or encode user-specific information to the request.
279
+
280
+
In the example below we pass through context from the incoming GraphQL resolver to the underlying binding.
0 commit comments