gatsby-plugin-extract-schema's Issues
Unexpected token '?' after upgrading from 0.0.5 -> 0.1.0
I receive this error when upgrading. Is it worth just replacing the usages of ?? with || (if falsey check is applicable) to avoid any compiler issues?
Error:[..]node_modules/gatsby-plugin-extract-schema/gatsby-node.js:13
const location = options.dest ?? defaultLocation;
^
SyntaxError: Unexpected token '?'
Edit: forgot to mention I tried the suggested addition of babel-preset-gatsby
in babel config, but that did not help.
Add support for Gatsby 5
With Gatsby v3, introspectionQuery no longer exists within gatsby/graphql
After updating to Gatsby v3, schema.json wasn't being created any longer. After a little digging, it looks like const { introspectionQuery, graphql } = require("gatsby/graphql");
is referencing a string
that is no longer being exported from 'gatsby/graphql'.
Looking closer at graphql.js
, { GraphQLJSON }
no longer contains introspectionQuery
in the latest version of graphql-compose
Support Gatsby 4
This could be as simple as updating peerDependencies
to `"gatsby": "^2.0.0 || ^3.0.0 || ^4.0.0".
I haven't tested extensively, but it seems to work fine on my sites after migration to v4, but there's a complaint from both npm and the gatsby build that this plugin doesn't support gatsby 4.
Generate stable schema
Right now the schema is not stable, so everytime it runs a new schema is generated. This is an issue when you'd like to check it in in source control.
A solution would be to sort the arrays in the schema.
Write schema to file only on change
Hi, you should write schema to file only if schema has changed to avoid unnecessary runs from other programs watching it.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.