Comments (2)
I missed the verbose option and it did help to find issue. My schema wasn't starting with the "data" field.
After that, the validation command was working, but I also moved the plugin settings to tsconfig.json
from tsconfig.server.jsson
to make it work with inside neovim too.
Thank you for the fast response!
from ts-graphql-plugin.
I get no completion or diagnostics.
First, IDEs/editors (e.g. VS code) generally don't read tsconfig.server.json
. By default they read tsconfig.json
.
Second, about Error: No GraphQL schema.
, please check your schema file. If you use a JSON file as schema, the JSON file should have the following format:
{
"data": {
"__schema": {
"queryType": {
"name": "Query"
},
"types": [
{
"kind": "OBJECT",
"name": "Query",
"description": null,
"fields": [
{
"name": "viewer",
:
It should equal to result of introspection query for your API.
And npx ts-graphql-plugin validate --verbose
may output more details.
from ts-graphql-plugin.
Related Issues (20)
- "No GraphQL schema" error (GitHub API)
- Document how to import graphql files (`typed-query-document`)
- Examine the possibility to use type from queries without generation HOT 6
- ts-graphql-plugin does not understand directive @connection (relay) HOT 3
- [typegen] Nullable params should be optional HOT 2
- List of list support HOT 2
- ts-graphql-plugin v4
- Empty variables, consider using `never` type? HOT 2
- Allow to customize type generation
- RangeError: Maximum call stack size exceeded HOT 3
- Action Required: Fix Renovate Configuration
- Feature Request: Cleanup generated files HOT 1
- External/Global fragment sources HOT 3
- Add more customizable pattern for `tag` HOT 2
- cli extract can't identify fragment which export by default.
- Dependency Dashboard
- graphql rename causes problems for webpack parser (Error: Cannot find module 'graphql/validation/rules/ExecutableDefinitions') HOT 3
- Typescript 4.8.2 breaking changes HOT 2
- Ignore/disable/turn off rules (for a certain line?)
- should depend on/use graphql-language-service instead of graphql-language-service-interface (deprecated) HOT 1
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 ts-graphql-plugin.