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

Escape-Technologies/arangodb-armor-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
        }
    }
}

About

This is an example usage for arangodb

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published