commitspark / graphql-api Goto Github PK
View Code? Open in Web Editor NEWLibrary to manage structured data in a Git repository through a GraphQL API
Home Page: https://commitspark.com
License: ISC License
Library to manage structured data in a Git repository through a GraphQL API
Home Page: https://commitspark.com
License: ISC License
Consider the following schema:
directive @Entry on OBJECT
type Page @Entry {
id: ID!
contentElements: [ContentElement!]
}
union ContentElement =
| Hero
| SectionTitle
type Hero {
heading: String
}
type SectionTitle {
heading: String
}
After serialization, the type information is lost, i.e. it is no longer possible to tell which concrete type within the union type was stored in the array of contentElements
. It is therefore impossible to correctly deserialize this data.
Type information is preserved within the serialized data.
In the readme you are linking to git-adapter-github.
However, this is a 404. There is no such repo, at least not public.
I'm currently trying out the github adapter and I think I found a bug but cannot report it.
directive @Entry on OBJECT
type MyEntry @Entry {
id: ID!
name: String
reference: OtherEntry
}
type OtherEntry @Entry {
id: ID!
foo: String
}
metadata:
type: MyEntry
data:
name: Test
reference: null
Trying to query field reference
causes exception.
Querying reference
returns a value of null
.
When querying id
field of an @Entry
where data is null
, value of id
field in GraphQL response is null
.
id
field returns ID of entry.
directive @Entry on OBJECT
type MyTest @Entry {
id: ID!
}
The input type MyTestInput
for createMyTest(data:MyTestInput, message:String): MyTest
and updateMyTest(id: ID!, data:MyTestInput, message:String): MyTest
is generated as follows:
input MyTestInput {
}
This is invalid GraphQL as every type must have at least one field.
Either an explicit error message indicating that a field is required or an auto-generated dummy field.
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.