Skip to content

Commit

Permalink
test: add test cases for groups field with null value
Browse files Browse the repository at this point in the history
  • Loading branch information
sundersc committed Apr 30, 2024
1 parent 97612f0 commit bdf1802
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 1,314 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,13 @@ export const schema = (engine: ImportedRDSType): string => `
content: String
}
type TodoOwnerAndGroup @model @auth(rules: [{ allow: owner, ownerField: "owners" }, { allow: groups, groupsField: "groupsField" }]) {
id: ID! @primaryKey
content: String
owners: [String]
groupsField: [String]
}
type Query {
customGetTodoPrivate(id: ID!): [TodoNonModel] @sql(statement: "SELECT * FROM ${convertToDBSpecificGraphQLString(
'TodoPrivate',
Expand Down
Loading

0 comments on commit bdf1802

Please sign in to comment.