Comments (2)
Your logic is correct, but the function introspectionFromSchema
is not a Voyager function. It's a function provided by the GraphQL library, so you need to have it ready too. Maybe you could try from https://www.jsdelivr.com/package/npm/graphql
from graphql-voyager.
Hi. I'm sorry if I'm hijacking this issue, but I'm having the exact same problematic. It's not for a build process specifically, but I'm trying to use Voyager on a static HTML page, using an SDL string as the input.
To gain access to the introspectionFromSchema
and buildSchema
functions, I'm importing them from a local file that itself imports them from the 'graphql'
library and sets them to window
.
But when launching the page, I just have an infinitely loading screen. No errors are logged in the console, and I'm a bit at a loss as to what I'm doing wrong or how to go about debugging this.
EDIT: I made a demo reproducing the issue on this repo: graphql-voyager-sdl-static-html-demo
It can be seen at this URL: https://turnabout.github.io/graphql-voyager-sdl-static-html-demo/
This may not be the optimal way to go about doing it, but right now I'm just trying to get something working. I'm not able to send an introspection query, all I have access to is an SDL string just like the OP.
from graphql-voyager.
Related Issues (20)
- Using empty input object value
- Import from local file instead of cdn in middlewares HOT 1
- Uncaught TypeError: renderVoyager is not a function
- Introducing semantic release HOT 3
- Blank screen when clicking on object type.
- Update example index.html: change init to renderVoyager
- Blank screen when switching between object types, input types, queries and mutations.
- Middleware HTML broken in version 2.0.0
- Apollo has changes the support for middleware
- Blank screen with React error when clicking on specific nodes
- Error: Unknown error HOT 1
- Latest NPM publish does not include render-voyager-page.js fix from #357 HOT 7
- Changing Schema with SDL Marks Types and Fields as Deprecated HOT 2
- NPM 2.0.0 version has major code problems HOT 1
- Error resolving dependency for React on npm install
- Voyager Breaks for Huge Schemas
- TypeError: Cannot read properties of undefined (reading 'name') HOT 1
- Support prebuilt SVG graph
- Node 20 is the current LTS
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.
from graphql-voyager.