Our GraphQL Server stitches together both remote schemas (using their URL) and subchemas (defined in ./subschemas/{subschema-name}
).
yarn
(from repo root - it'll build all the packages)yarn dev
(from this directory)
If you are working on one of the packages you will need to rebuild the dist
folder for that package. In another terminal folder cd
into the package and run yarn watch
or yarn build
.
These are the schemas we control the code of, they belong in ./subschemas
and should be npm packages that export the schema using makeExecutableSchema
from @graphql-tools/schema
.
Our graphs that are hostel elsewhere, such as the Subsquid one are loaded via their URL. See ./src/index/ts
.