Skip to content

Change schema at runtime ?  #122

Closed
Closed
@jhay06

Description

@jhay06

Hi would like to request or if it existing please add to documentation

Please add the option to change schema at runtime ,

in python and flask with ariadne this is possible ,

should have different schema per URL , yes i know i can define the schema and the URL before the express server runs but the thing is , everytime i have to add new schema i need to define another URL with its own createHandler option ,

i just want to add a folder directory then inside off every folder created there is api.js that defines the rootValue methods , and its own schema , the goal is to everytime we have another API we will add new folder and an api.js file and it will be accessible via url http://mydomain.com/partner/code , this code is dynamic so i only need to use this express js routing app.use('/partner/:code') to make my code accessible via request.params and this code will be equal to the partner folder where api and schemas reside

thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions