Skip to content
This repository has been archived by the owner on Sep 2, 2022. It is now read-only.

Latest commit

 

History

History
123 lines (97 loc) · 1.83 KB

README.md

File metadata and controls

123 lines (97 loc) · 1.83 KB

arangodb-armor-example

Installation

yarn
docker run -p 8529:8529 -e ARANGO_ROOT_PASSWORD=openSesame arangodb/arangodb:3.9.2
  1. Head to Webview: http://localhost:8529

  2. Credentials: root:openSesame

  3. Create new service using Github and Escape-Technologies/arangodb-armor-example path.

ArangoDB Webview ArangoDB Webview

Sources

Scripts and schema from: https://github.com/arangodb-foxx/demo-graphql

Testing

GraphQL Reserverd keyword

query {
    __typename
}

Valid Query

query {
    hero(episode: "NewHope") {
        name
        friends(species: DROID) {
            name
        }
    }
}

Field Suggestion disabled

query {
    hero(episode: "NewHope") {
        namee
    }
}

Cost Limit

query {
    ...HeroFragment
    ...HeroFragment
    ...HeroFragment
}

fragment HeroFragment on Query {
    hero(episode: "NewHope") {
        name
        friends(species: Droid) {
            name
        }
    }
}

Max aliases

query {
    firstHero: hero(episode: "NewHope") {
        name
    }
  
    secondHero: hero(episode: "NewHope") {
        name
    }

    thirdHero: hero(episode: "NewHope") {
        name
    }
}

Max depth

query {
    hero(episode: "NewHope") {
        name
        friends(species: DROID) {
            name
            friends(species: DROID) {
                name
                friends(species: DROID) {
                    name
                }
            }
        }
    }
}

Max Directives

query {
    hero(episode: "NewHope") {
        name
        friends(species: DROID) @a@a@a@a@a@a@a@a@a@a@a@a@a@a@a@a@a@a@a@a@a {
            name
        }
    }
}