From 1618680219b1d280b03f7fd20cf5de53d1051923 Mon Sep 17 00:00:00 2001 From: Andrew Konstantinov Date: Mon, 28 Nov 2022 14:08:13 +0100 Subject: [PATCH] Mark code listings as GraphQL --- README.md | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index f2741f3..5a16a21 100644 --- a/README.md +++ b/README.md @@ -89,17 +89,24 @@ The following screenshot shows the use of templates generation: Based on InQL's introspection intermediate representation (IIR), the tool is able to generate arbitrarily nested queries with support to any scalar type, enumerations, arrays, and objects. -```javascript +```graphql query { - Character(id_not_in:[1334], sort:[ROLE_DESC], search:"code", id_not:1334, id:1334, id_in:[1334]) { + Character( + id_not_in: [1334] + sort: [ROLE_DESC] + search: "code" + id_not: 1334 + id: 1334 + id_in: [1334] + ) { image { large } siteUrl favourites modNotes - description(asHtml:true) - media(sort:[TITLE_ROMAJI], type:ANIME, perPage:1334, page:1334) { + description(asHtml: true) + media(sort: [TITLE_ROMAJI], type: ANIME, perPage: 1334, page: 1334) { edges { isMainStudio } @@ -145,9 +152,9 @@ query { will get converted into: -``` +```graphql query { - op1: Character(id: 1) { + op1: Character(id: 1) { name { first last