mirror of
https://github.com/Ratstail91/sineQL.git
synced 2025-11-29 02:34:28 +11:00
Rearranged the files, adjusted the code slightly
This commit is contained in:
10
README.md
10
README.md
@@ -1,6 +1,6 @@
|
||||
simpleQL is a web API query language that mimics graphQL, designed solely for fun.
|
||||
sineQL is a web API query language that mimics graphQL, designed solely for fun.
|
||||
|
||||
simpleQL consists of two languages - the schema language, and the query language.
|
||||
sineQL consists of two languages - the schema language, and the query language.
|
||||
|
||||
## The Schema Language
|
||||
|
||||
@@ -30,13 +30,11 @@ type Book {
|
||||
}
|
||||
|
||||
type Author {
|
||||
!String name
|
||||
!Book[] books
|
||||
String name
|
||||
Book books
|
||||
}
|
||||
```
|
||||
|
||||
`[]` Represents an array of fields, while `!` represents a field that must not be omitted in queries (non-nullable).
|
||||
|
||||
## The Query Language
|
||||
|
||||
The query langauge can be used to request data from a server, either in whole or in part by listing it's type and it's fields, and subfields.
|
||||
|
||||
Reference in New Issue
Block a user