Skip to content

Commit

Permalink
feat: introduce allLayers query
Browse files Browse the repository at this point in the history
  • Loading branch information
ahennr committed Oct 9, 2024
1 parent 556cd81 commit 4df6bdd
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 4df6bdd

Please sign in to comment.