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.

Incremental introspection

See original GitHub issue

Hello,

We are working on database with 10k+ tables. Each table maps into several graphql types and fields. We have a problem with introspecting graphiql, which fails on serializing such huge schema at once. Can you provide incremental introspection loading when each documentation screen loads their data separately? Maybe it can be startup option --inctremental-introspection?

Best regards, Dmitriy.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:6
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
luniconcommented, Mar 22, 2018

I use pre-builded schema.json from introspection query for service with 10k+ types. And init application with it.

fetch('graphql/schema.json', {
  method: 'get',
  headers: { 'Accept': 'application/json'},
  credentials: 'include',
}).then(function (response) {
    return JSON.parse(response.text());
}).then(function (schema) {
  ReactDOM.render(
    React.createElement(GraphiQL, {
      schema: buildClientSchema(schema),
      ...
    }),
    document.getElementById('graphiql')
  );      
});

Also need to add function buildClientSchema to globals. Find it in graphiql.js and add window.buildClientSchema= export.buildClientSchema = …

And finally use compression (br, gzip) for faster schema.json loading Have fun

1reaction
acaocommented, Sep 4, 2019

facebook has a 100mb schema, and found the best option was to load the schema from a json file on the local filesystem the introspection query and the http payload are otherwise very slow. hoping to support this in graphiql 1.1.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

Endless introspection. – IDEs Support (IntelliJ Platform)
It is not even able to introspect it with default memory settings. ... It's clearly no doing an efficient "incremental" introspection.
Read more >
Performing Introspection on a Data Source Connection
Introspection is a method of inspecting a physical data source for metadata elements. When you perform introspection, structural information in the data ...
Read more >
Continuous Online Self-Monitoring Introspection Circuitry for ...
Continuous Online Self-Monitoring Introspection Circuitry for Timing Repair by Incremental Partial-Reconfiguration (COSMIC TRIP).
Read more >
Refreshing Reflections - Dremio docs
It is also possible to use this type when a reflection is not sorted or partitioned. Incremental refresh. Dremio appends data to the...
Read more >
What is introspection? (Reference) - Prisma
Learn how you can introspect your database to generate a data model into your Prisma schema.
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