Comments (8)
Hey @imolorhe - sorry it took a while to get to you. Did you resolve this? The link shows me 404 at the moment.
from codemirror-graphql.
@asiandrummer This is the current link: https://github.com/imolorhe/altair/blob/staging/src/app/components/query-editor/query-editor.component.ts#L134
I've not yet resolved it.
from codemirror-graphql.
@imolorhe I couldn't find where you're rendering the autocomplete results, but I'm throwing a random guess that you may be using an incorrect key name for accessing autocomplete result items. Below is the type:
type AutocompleteResultItem = {
text: string,
type: GraphQLType,
description?: string,
isDeprecated: boolean,
deprecationReason: string,
};
from codemirror-graphql.
Do I need to specially render it? I just use it as any code mirror add-on. I didn't eclogite l explicitly render the autocomplete.
from codemirror-graphql.
You don't if you're using the stock codemirror/show-hint
addon and just wanted to render the autocomplete result texts. As shown in show-hint
section in the addons page, codemirror
won't understand the description
key that we're passing from the autocomplete suggestion provider.
GraphiQL uses a custom UI renderer to solve this.
from codemirror-graphql.
Oh okay, makes sense now. Thanks.
from codemirror-graphql.
I guess that bit is missed in the docs for this add on then.
from codemirror-graphql.
:D let me know if you have other questions! Closing this for now.
from codemirror-graphql.
Related Issues (20)
- Use `graphql-language-service-parser` instead HOT 1
- Support for schema shorthand notation HOT 4
- Code in 0.6.3 version on the npm is quite different with the code on the github HOT 4
- Upgrade graphql-language-service-interface to 0.7.0 HOT 3
- Where is [email protected] source code? HOT 1
- When will you publish 0.6.4? HOT 5
- Getting a TypeError when rendering GraphiQL HOT 1
- automatically fills in leaf nodes HOT 6
- Problem with IDEOGRAPHIC SPACE (\u3000) HOT 3
- Export `mode` as its own package HOT 5
- Should peer dependency on graphql be OK with graphql 0.11.x? HOT 4
- Please publish v0.6.12 to npm HOT 1
- please enable graphql v13 as peer dependency HOT 7
- How to bring graphql schema from server to client? HOT 1
- Support `null` value for field arguments HOT 1
- URL param to open docs panel? HOT 1
- Add fragment suggestion HOT 3
- `TypeCondition` and `Directive' aren't optional in InlineFragments HOT 1
- make codemirror-graphql to support graphql 0.8.0-b as a peer dependency
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 codemirror-graphql.