menu
Channels
# All channels
view-forward
# General
view-forward
# Apollo Angular
view-forward
# Announcements
view-forward
# Apollo Android
view-forward
# Apollo Client
view-forward
# Apollo iOS
view-forward
# Apollo Link
view-forward
# Apollo Link Rest
view-forward
# Local State
view-forward
# Apollo Platform
view-forward
# Apollo Server
view-forward
# Apollo Tooling
view-forward
# Contributing
view-forward
# Docs
view-forward
# Events
view-forward
# GraphQL Tools
view-forward
# Jobs
view-forward
# Random
view-forward
# React Apollo
view-forward
# Showcase
view-forward
# Subscriptions
view-forward
# Testing
view-forward
# Vue Apollo
view-forward
Team
Posts
Members
Info

How to generate a type that represents the full schema?

Hello, I'm wondering how I could generate Typescript types for the full schema? My use case is for tests, we have mock objects to mock the specific data we rely on from useQuery. One way we could type this is if we had a typescript interface that had our full schema typed for…

thumbsup
0
message-simple
0

How to use introspection tools in tests

We're trying to write component tests on the front end and integration tests on our back-end. We would like to verify that our GraphQL queries match the schema, but still use the MockProvider. Basically, without starting a server or making a network connection, is there a way to…

thumbsup
0
message-simple
2

graphql-js v15 support in graphql-tools-fork

Users can install the prerelease of graphql-tools-fork v9 with graphql v15.0.0-rc.1 support via npm using the below amazing label:

thumbsup
0
message-simple
0

Is there a way for SchemaDirectiveVisitors to replace one type with many?

I'm working on a simple implementation of the AWS AppSync transform directives (https://aws-amplify.github.io/docs/cli-toolchain/graphql#directives). Some (i.e. @model) are applied to an object, and expand that object into additional types, input types, etc. But the…

thumbsup
0
message-simple
1

How to manually generate a correct GraphQLResolveInfo AST object?

Hello, I am wondering if some experts can help with a rather complicated requirement. I'm quite familiar with Apollo Server, but I have an extreme edge case problem where I need to call one of the functions provided by the neo4j-graphql-js library outside of the regular context…

thumbsup
0
message-simple
4

What are the best extensions available for apollo-graphql on VS Code ?

thumbsup
0
message-simple
0

Accessing query info inside DataLoader?

DataLoader takes an array of ids and expects an array of promises as a response. Is it possible to access the resolver info argument inside batch function? For example, I write a query such as query { comments { id, message, author { id, name } } } and I use DataLoader to batch…

thumbsup
0
message-simple
8

How to transform federated gateway schema?

I have bunch of micro services that export their schemas. I then use 'gateway = new ApolloGateway({...})' and 'new ApolloServer({ gateway, ... })' to build gateway micro service. The question is how can I transform the schema of this gateway? What I want to achieve is to be able…

thumbsup
0
message-simple
0

Best Linter for graphql Schema validation

What is the best linter for GraphQl Schema? I have modular schema. i.e. in different folder have different schema. But All schema file name schema.graphql. Please suggest best linter or linting tools for schema validation. Thanks in advance.

thumbsup
0
message-simple
3

how do you know what data will be available to a directive?

i want to make an "allow" field directive to simplify fine-grained authorization however, i'm not sure what data will be available when it runs... what is "field" "args";what do they contain? is it possible to make directives with functional programming? I just find it simpler …

thumbsup
0
message-simple
0