Prebuilt Getting Started
Create a new graph in GraphOS and follow the "Set up your local development environment" instructions.
Update your local
router.yaml
file to configure yourSTRAPI_API_KEY
with read access toUsers
- be sure to update yoursupergraph.yaml
to use the same subgraph name (users
)
# router.yaml
connectors:
subgraphs:
users.strapi:
$config:
apiKey: ${env.STRAPI_API_KEY}
# supergraph.yaml
federation_version: =2.10.0
subgraphs:
users:
routing_url: http://strapi-users
schema:
file: users.graphql
Copy the prebuilt Connector file content into the
.graphql
file in your local project. Strapi ships with a defaultUser
Content-Type that the prebuilt Connector uses. You can copy the pattern for any Content-Type you have defined in your Strapi instance.Run
rover dev
with yourSTRAPI_API_KEY
:
export STRAPI_API_KEY=...
rover dev \
--supergraph-config supergraph.yaml \
--router-config router.yaml
Connectors resources
Learn more about connectors by checking out the Connectors documentation.
Have questions? Check out the Apollo Community for Connectors to discuss.