Skip to content

Commit

Permalink
remove hidden attributes from filter input generation
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskalmar committed Jan 30, 2021
1 parent c1bc3f7 commit 27abb9c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/graphqlProtocol/filter.ts
Expand Up @@ -64,6 +64,10 @@ export const generateFilterInput = (entity, graphRegistry) => {
let attributeType = attribute.type;
const isPrimary = attribute.primary;

if (attribute.hidden) {
return;
}

if (attribute.mutationInput) {
return;
}
Expand Down Expand Up @@ -125,8 +129,7 @@ export const generateFilterInput = (entity, graphRegistry) => {
entity.name,
true,
);
}
else if (
} else if (
storageDataTypeCapabilities[capability] ===
storageDataTypeCapabilityType.VALUE
) {
Expand Down

0 comments on commit 27abb9c

Please sign in to comment.