mirror of
https://github.com/dolthub/dolt.git
synced 2026-02-11 18:49:14 -06:00
1.2 KiB
1.2 KiB
Noms GraphQL
An experimental bridge between noms and GraphQL
Status
-
All Noms types are supported except
- Blob
- Type
- Unions with non-
Structcomponent types
-
Noms collections (
List,Set,Map) are expressed as graphql Structs with a list-valuedelementsfield.- Lists support argumemts
atandcountto narrow the range of returned elements - Sets and Map support argument
countwhich results in the firstcountvalues being returned Map<K,V>is expressed as a list of "entry-struct", e.g.Ref<T>is expressed as a graphql struct with atargetHashandtargetValuefield.
- Lists support argumemts
List:
type FooList {
size: Float!
elements: [Foo!]!
}
Set:
type FooSet {
size: Float!
elements: [Foo!]!
}
Map:
type StringFooMap {
size: Float!
elements: [StringFooEntry!]!
}
type StringFloatEntry {
key: String!
value: Float!
}
Ref:
type FooRef {
targetHash: String!
targetValue: Foo!
}
- Mutations not yet supported
- Higher-level operations (such as set-intersection/union) not yet supported.
- Perf has not been evaluated or addressed and is probably unimpresssive.