-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: migrate away from prisma-nexus-plugin. (#137)
- Loading branch information
Showing
15 changed files
with
216 additions
and
180 deletions.
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
File renamed without changes.
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
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
export * from './scalars'; | ||
export * from './user'; | ||
export * from './profile'; | ||
export * from './shared' |
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
25 changes: 25 additions & 0 deletions
25
packages/create-bison-app/template/graphql/modules/shared.ts
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,25 @@ | ||
import { enumType, inputObjectType } from 'nexus'; | ||
|
||
// the following items are migrated from the prisma plugin | ||
export const SortOrder = enumType({ | ||
name: 'SortOrder', | ||
description: 'Sort direction for filtering queries (ascending or descending)', | ||
members: ['asc', 'desc'], | ||
}); | ||
|
||
export const StringFilter = inputObjectType({ | ||
name: 'StringFilter', | ||
description: 'A way to filter string fields. Meant to pass to prisma where clause', | ||
definition(t) { | ||
t.string('contains'); | ||
t.string('endsWith'); | ||
t.string('equals'); | ||
t.string('gt'); | ||
t.string('gte'); | ||
t.list.nonNull.string('in'); | ||
t.string('lt'); | ||
t.string('lte'); | ||
t.list.nonNull.string('notIn'); | ||
t.string('startsWith'); | ||
}, | ||
}); |
Oops, something went wrong.