Skip to content

Commit

Permalink
Merge pull request #787 from terrestris/all-layers
Browse files Browse the repository at this point in the history
feat: introduce allLayers graphql query
  • Loading branch information
ahennr authored Oct 9, 2024
2 parents 556cd81 + 4df6bdd commit bc0d7d8
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions src/graphqlqueries/Layers.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
const layerAttributes = `
id
clientConfig
name
sourceConfig
type
`;

export const allLayersByIds = `query($ids: [Int]) {
allLayersByIds(ids: $ids) {
id
clientConfig
name
sourceConfig
type
${layerAttributes}
}
}`;

export const allLayers = `query {
allLayers {
${layerAttributes}
}
}`;

0 comments on commit bc0d7d8

Please sign in to comment.