Closed dagda1 closed 1 year ago
This is a bit rough, but the primary motivation is to decrease the surface area of the code we bring into a client's project.
Importing a package is preferable to a tonne of code that a team has to maintain.
The main export is a function that takes a Graphgen factory and starts a @graphql/yoga server.
Graphgen
@graphql/yoga
export function startGithubApiSimulator(factory: GraphGen): void
The world.graphql is purely for types
world.graphql
Motivation
This is a bit rough, but the primary motivation is to decrease the surface area of the code we bring into a client's project.
Importing a package is preferable to a tonne of code that a team has to maintain.
Approach
The main export is a function that takes a
Graphgen
factory and starts a@graphql/yoga
server.The
world.graphql
is purely for types