- Use the GraphQL Playground to query Eg:
http://localhost:9400/graphql-playground
- For querying a specific Account
- use Account field in the GraphQL query as below
account(accountid: 1) { accountid accountnumber }
- For querying all Accounts
- use Accounts field in the GraphQL query as below
{ accounts(first: 5) { data { accountid accountnumber } } }
- you can also try paginating, as below
{ accounts(first: 2, page: 2) { data { accountid accountnumber created_on last_login } paginatorInfo { total currentPage perPage } } }
basavaraj-nanjappa / bankaccounts_php_gql Goto Github PK
View Code? Open in Web Editor NEWStandalone GraphQL App using Lumen/Laravel, Lighthouse