Skip to content

Commit

Permalink
update spacex example
Browse files Browse the repository at this point in the history
  • Loading branch information
Diizzayy committed Mar 18, 2023
1 parent 87d5201 commit c1b8c38
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion playground/apollo/default.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { defineApolloClient } from '@nuxtjs/apollo'

export default defineApolloClient({
// The GraphQL endpoint.
httpEndpoint: 'https://api.spacex.land/graphql',
httpEndpoint: 'https://spacex-api-2gl6xp7kua-ue.a.run.app/query',

// Provide a GraphQL endpoint to be used client-side. Overrides `httpEndpoint`.
// browserHttpEndpoint: '/graphql',
Expand Down
20 changes: 11 additions & 9 deletions playground/queries/launches.gql
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
query launches($sort: String = "launch_year", $order: String = "desc", $limit: Int = 10) {
launches(sort: $sort, order: $order, find: { mission_name: "Starlink" }, limit: $limit) {
query launches($sort: String = "date", $order: SortOrder = desc, $limit: Int = 10) {
launches(sort: $sort, order: $order, filter: { name: "Starlink" }, limit: $limit) {
id
details
mission_name
launch_year
launch_success
name
date
success
links {
article_link
flickr_images
article
patch {
small
}
}
rocket {
rocket_name
rocket_type
name
type
}
}
}

0 comments on commit c1b8c38

Please sign in to comment.