question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Multiple schemas from folder

See original GitHub issue

As a user, I want to specify a folder, from which I want spectaql to load schema. It is uncomfortable for me to specify each GraphQL schema file by hand in the config file.

Here is an example:
config.yml

introspection:
  schemaFile: ./graphql/

Files schema

  • config.yml
  • graphql
    • graphql_schema_1.graphqls
    • graphql_schema_2.graphqls
    • graphql_schema_3.graphqls

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
Munooncommented, May 3, 2022

Thank you, that’s really works!

0reactions
newhousecommented, May 3, 2022

You’ll have to try reading up on different glob patterns that are supported by that library. Typically something like ./graphql/**/*.gql will work.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to import files with different schema using a Batch Macro
Firstly, create an empty folder named 'Macro' somewhere on your computer, then navigate to Options > User Settings > Macros. Add a file...
Read more >
Entity classes for multiple schemas not separated into ...
Hello all. I'm migrating an existing postgresql database to be used with .Net Core. There are a number of schemas in the database....
Read more >
How can I tell jaxb / Maven to generate multiple schema ...
Any ideas? I do not want to generate the packages directly in the src/main/java folder, because these packages are genereated and should not...
Read more >
Migrate files of different schemas from one folder to another
Solved: Hello I have around 200 csv files (each with a different data structure). I want Alteryx to pull each file (one at...
Read more >
Android Apollo3 Migration - Multiple schemas found error
In migrating from 2.5.5 to 3.1.0 on Android, I've hit an issue with having multiple services/schemas. The app reaches out to two GraphQL ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found