0.10.1 • Published 25 days ago

@loopback/example-graphql v0.10.1

Weekly downloads
59
License
MIT
Repository
github
Last release
25 days ago

@loopback/example-graphql

An example application to demonstrate GraphQL integration for LoopBack 4 using @loopback/graphql.

Try it out

npm start

You should see the following messages:

Server is running at http://[::1]:3000
Try http://[::1]:3000/graphql

Open http://127.0.0.1:3000/graphql in your browser to play with the GraphiQL.

graphql-demo

  1. Copy the query to the right panel:
query GetRecipe1 {
  recipe(recipeId: "1") {
    title
    description
    ratings
    creationDate
    ratingsCount(minRate: 2)
    averageRating
    ingredients
    numberInCollection
  }
}
  1. Click on the run icon:
{
  "data": {
    "recipe": {
      "title": "Recipe 1",
      "description": "Desc 1",
      "ratings": [0, 3, 1],
      "creationDate": "2018-04-11T00:00:00.000Z",
      "ratingsCount": 1,
      "averageRating": 1.3333333333333333,
      "ingredients": ["one", "two", "three"],
      "numberInCollection": 1
    }
  }
}

Contributions

Tests

Run npm test from the root folder.

Contributors

See all contributors.

License

MIT

0.10.1

25 days ago

0.10.0

2 months ago

0.9.5

4 months ago

0.9.4

5 months ago

0.9.3

8 months ago

0.9.2

9 months ago

0.9.1

10 months ago

0.9.0

10 months ago

0.8.0

12 months ago

0.7.10

1 year ago

0.7.9

1 year ago

0.7.8

1 year ago

0.7.6

1 year ago

0.7.5

1 year ago

0.7.7

1 year ago

0.7.4

2 years ago

0.7.3

2 years ago

0.7.2

2 years ago

0.7.1

2 years ago

0.7.0

2 years ago

0.6.2

2 years ago

0.6.1

2 years ago

0.6.0

2 years ago

0.5.1

2 years ago

0.5.0

2 years ago

0.4.2

3 years ago

0.4.1

3 years ago

0.4.0

3 years ago

0.3.1

3 years ago

0.3.0

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago