Replies: 2 comments 13 replies
-
@leebyron @benjie @IvanGoncharov @BoD @twof @michaelstaib @sachee @fotoetienne @yaacovCR @joeynenni |
Beta Was this translation helpful? Give feedback.
-
I agree that the chapter may be reordered. After my talks, I'm tired to explain to people that GraphQL has two languages – SDL (for schema definition and development) and query language (for runtime). Also, it will be nice to choose the exact terminology:
|
Beta Was this translation helpful? Give feedback.
-
Current Arrangement
Problem
The Language chapter - 11 out of 12 sections describe the Request language, that is about querying against the server's type system that is NOT DESCRIBED YET - it is the subject of chapter 2. You literally have to jump forward and back (pic) It seems more logical to describe type system first, then how to make requests against it
It might seem that 'Type System' would have no 'language' stuff, but - there is a lot of 'language' there! It defines the IDL (SDL).
Observation
Indeed we have 2 languages in GraphQL:
They are similar, share some elements, but still different languages - their domains do not intersect (for a doc - it is one or another).
Suggestion
New chapters order and titles:
Additional consideration: section '2.1 Source Text' in current version describes basic language elements and its lexic base (terminals). It is common to both languages (SDL and Request).
In new arrangement, if we move the whole chapter it will end up in odd place - in the Request Language chapter (renamed from Language), after 'Type System and SDL'. It should retain the first position as it describes the common elements of languages. Maybe make it a separate chapter preceding these two? It is large enough to be a chapter.
Beta Was this translation helpful? Give feedback.
All reactions