Skip to content
A GraphQL demo built with Lighthouse.
PHP HTML Vue
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
bootstrap
config
database
public
resources
routes
storage
tests
.editorconfig
.env.example
.gitattributes
.gitignore
LICENSE.md
README.md
artisan
composer.json
composer.lock
package.json
phpunit.xml
server.php
webpack.mix.js
yarn.lock

README.md

Demo GraphQL API for ngx-lighthouse

This is a demo, that can be used while testing the ngx-buoy library.

Methods

Endpoint: https://demo.ngx-buoy.com/graph

Movies

You can fetch movies with following query.

query Movies {
    movies(count: 5, page: 1) {
        data {
            id
            name
            overview
        }
    }
}

Actors

You can fetch actors with following query.

query Actors {
    actors(count: 5, page: 1) {
        data {
            id
            name
        }
    }
}

Adding movies

You can add movies to the database, with following mutation.

This will also fetch all the actors that are connected to the movie.

mutation AddMovie {
    addMovie(tmdb_id: 700) {
        name
        overview
    }
}

All data is provided by themoviedb.com free of charge.

You can’t perform that action at this time.