Skip to content

Commit

Permalink
Mark code listings as GraphQL
Browse files Browse the repository at this point in the history
  • Loading branch information
execveat committed Nov 28, 2022
1 parent 55eef18 commit 1618680
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down Expand Up @@ -145,9 +152,9 @@ query {

will get converted into:

```
```graphql
query {
op1: Character(id: 1) {
op1: Character(id: 1) {
name {
first
last
Expand Down

0 comments on commit 1618680

Please sign in to comment.