Skip to content

Latest commit

 

History

History
54 lines (41 loc) · 949 Bytes

README.md

File metadata and controls

54 lines (41 loc) · 949 Bytes

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.