Skip to content

Dynamic schema passing #113

Answered by enisdenjo
chilarai asked this question in Q&A
Sep 21, 2023 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

No, schema is a property in the handler options.

fastify.all(
    "/:id/graphql",
    createHandler({
        schema: (req) => {
           return schema2;
        }
    })
);

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@chilarai
Comment options

@enisdenjo
Comment options

Answer selected by chilarai
@chilarai
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants