Comments (3)
in GraphiQL you can press [control] + [space] to autocomplete.
For example to see the list of queries you can type {
and then press [control] + [space]. You can also browse types in GraphiQL on the right side of the screen.
Based on the definition you provided above you can type { getAthletesByCountry { ... }}
and replace ... with the appropriate field selectors.
The underlying library GraphQL-Java does provide introspection queries (at least with a JSON schema representation). Let me know if you'd like me to add that to an example.
from rejoiner.
I happened to stumble across an introspection query example that worked.
I was able to derive the correct query from the introspection response:
query Athletes { getAthletesByCountry(input: {country: "Canada"}) { id first last } }
The server returns a 500 - graphql.GraphQLException: no operation found - if an operation name is not provided which I am not sure is correct or not.
I would appreciate an introspection example still, if you don't mind.
On a sad note, I was not able to get autocomplete to work or types to display in GraphiQL.
from rejoiner.
I have resolved the "no operation found" and GraphiQL auto-completion/schema generation issues. There was a minor issue with my server implementation. Feel free to close this ticket with haste since this is just pebkac.
from rejoiner.
Related Issues (20)
- nicer JSON for standard wrappers HOT 11
- google_protobuf_Any value string HOT 1
- Rejoiner - Relay support thoughts HOT 5
- Sample/Example if backend GRPC services are in different language?
- Errors executing GraphQL request HOT 2
- Activity? HOT 4
- Request for Help on `GraphQL Stream (based on gRPC streaming)`
- Question: TypeModifcation - Replace field with context
- There is a vulnerability in Jetty: Java based HTTP/1.x, HTTP/2, Servlet, WebSocket Server 9.3.8.v20160314,upgrade recommended
- Missing "TestProto" component
- Question: rejoiner inside existing grpc service? HOT 2
- Exception when starting up Spring Boot 2.7.7/Java 17 app with Rejoiner HOT 2
- proto options not present in input messages
- Documentation website down. Open contributors?
- Documentation website down. Open contributors? HOT 3
- Load balancing strategy
- Quick Start Guide HOT 2
- How to get Proto object from the parent arguments? HOT 3
- modularization HOT 3
- errors HOT 2
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 rejoiner.