-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Created ViewField prisma model - Added ViewField server resolvers for readMany/updateOne - Added getMany/updateOne graphql queries Closes #849
- Loading branch information
1 parent
03b619e
commit a3b46d2
Showing
15 changed files
with
487 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { gql } from '@apollo/client'; | ||
|
||
export const GET_VIEW_FIELDS = gql` | ||
query GetViewFields($where: ViewFieldWhereInput) { | ||
viewFields: findManyViewField(where: $where) { | ||
id | ||
fieldName | ||
isVisible | ||
sizeInPx | ||
index | ||
} | ||
} | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { gql } from '@apollo/client'; | ||
|
||
export const UPDATE_VIEW_FIELD = gql` | ||
mutation UpdateViewField( | ||
$data: ViewFieldUpdateInput! | ||
$where: ViewFieldWhereUniqueInput! | ||
) { | ||
updateOneViewField(data: $data, where: $where) { | ||
id | ||
fieldName | ||
isVisible | ||
sizeInPx | ||
index | ||
} | ||
} | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.