Skip to content

Commit

Permalink
Refine GraphQL query to fetch by ID in layer fetcher
Browse files Browse the repository at this point in the history
  • Loading branch information
sjoerdbeentjes committed Jul 3, 2024
1 parent d8cd7dd commit 0f0f189
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/fetch-layer-xml.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import fetch from 'node-fetch'
import convert from 'xml-js'

const query = /* graphql */ `
query LayerById {
layer(filter: {inspireMetadata: { exists:true }}) {
query LayerById($id: ItemId) {
layer(filter: {id: {eq: $id}}) {
name
url
layer
Expand Down

0 comments on commit 0f0f189

Please sign in to comment.