uniiverse / graphql-examples Goto Github PK
View Code? Open in Web Editor NEWIn this repository you'll find some examples of using our GraphQL API
In this repository you'll find some examples of using our GraphQL API
I can see that both coverPhoto
& eventPhoto
take ImageInputType
which requires uploadId of an image. Which means I have to use an already uploaded imageid from a previously created event that was not created via the api.
Right now, if I want to use the api to create events and have cover photo and an event photo, I have to have a hidden draft event which stores various images and then fetch the correct ID from api and parse it to the mutation event, which is not ideal.
Is there a mutation for uploading an Image via the api or an endpoint for uploading images and getting uploadid in response?
Thanks.
Recently I noticed that Universe GraphQL schema has changed a bit and new JSON
scalar type as well as a default value were introduced. In the introspection JSON it looks like this:
{
"defaultValue" : "[]",
"description" : "array of {key: value} or 'string' where clauses",
"name" : "clauses",
"type" : {
"kind" : "SCALAR",
"name" : "JSON",
"ofType" : null
}
}
Based on my understanding of the GraphQL spec, the default value []
is not compatible the the argument type. According to the GraphQL spec:
defaultValue may return a String encoding (using the GraphQL language) of the default value used by this input value in the condition a value is not provided at runtime. If this input value has no default value, returns null.
The argument type is a simple scalar value. This means that it can't have value like []
(the default value is described with GraphQL syntax, not JSON). I'm not sure how JSON scalar type is implemented internally, but if it is represented with a String
literal, then the default value should be something like "defaultValue": "\"[]\""
.
I was not 100% sure where to report this issue, so I decided to put it here. Would be great if somebody could look into it.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.