Comments (2)
For InputType
that is easy: input.to_value().into_json()
.
For OutputType
it is not, as each field must be resolved into async_graphql::Value
, and those depend on a selection set { field1 field3 }
and the current context. If you do this by yourself, you reimplement the GraphQL server spec. Instead, you may use the current implementation: schema.execute(Request { query, .. }).data.into_json()
.
from async-graphql.
Related Issues (20)
- Using generics with both SimpleObject and InputObject as field in output type fails HOT 1
- Subscription Authentication
- Stack overflow after upgrade to 7.0.2 HOT 9
- Does async-graphql validate responses?
- Error reading data from ExtensionContext after upgrade to 7.0.3 HOT 1
- Create a general error formateer HOT 1
- Allow flatten on arguments HOT 1
- External fields not getting generated in SDL
- Overflow when using `MergedObject`
- Function to reference the graphql(name) defined on an enum HOT 4
- Is there a way to have multiple schemas on the same route? HOT 1
- Resolve invalid names when scalar! is applied to a type with a type parameter HOT 1
- License files not shipped in sub-crates
- How to use `Option<String>` as an Interface field type? HOT 1
- Default Argument Values Not Applied When Arguments Are Omitted HOT 1
- Deep nested fields with `@requires` and no identifiers.
- How to allow a schema to use a relationship between two Models ? HOT 2
- Serializing custom json values wraps all numbers in `$serde_json::private::Number` HOT 2
- Guard + Option<Result<T>> on a single field makes the full query null
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 async-graphql.