Skip to content

Commit

Permalink
Merge pull request #34 from izziaraffaele/master
Browse files Browse the repository at this point in the history
Use a different strategy to identify related resource inputs
  • Loading branch information
macrozone authored Aug 25, 2020
2 parents 7c3e4a6 + 08a5977 commit de4b8a8
Show file tree
Hide file tree
Showing 8 changed files with 882 additions and 30 deletions.
43 changes: 39 additions & 4 deletions packages/dataprovider/generated/nexus-prisma.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ interface ModelTypes {
UserRole: prisma.UserRole
UserSocialMedia: prisma.UserSocialMedia
BlogPost: prisma.BlogPost
BlogPostComment: prisma.BlogPostComment
User: prisma.User
SomePublicRecordWithIntId: prisma.SomePublicRecordWithIntId
}
Expand All @@ -267,11 +268,15 @@ interface NexusPrismaInputs {
ordering: 'id' | 'instagram' | 'twitter' | 'userId'
}
blogPosts: {
filtering: 'id' | 'title' | 'text' | 'authorId' | 'AND' | 'OR' | 'NOT' | 'author'
filtering: 'id' | 'title' | 'text' | 'authorId' | 'comments' | 'AND' | 'OR' | 'NOT' | 'author'
ordering: 'id' | 'title' | 'text' | 'authorId'
}
blogPostComments: {
filtering: 'id' | 'text' | 'postId' | 'authorId' | 'AND' | 'OR' | 'NOT' | 'post' | 'author'
ordering: 'id' | 'text' | 'postId' | 'authorId'
}
users: {
filtering: 'id' | 'email' | 'roles' | 'firstName' | 'lastName' | 'gender' | 'yearOfBirth' | 'wantsNewsletter' | 'blogPosts' | 'AND' | 'OR' | 'NOT' | 'userSocialMedia'
filtering: 'id' | 'email' | 'roles' | 'firstName' | 'lastName' | 'gender' | 'yearOfBirth' | 'wantsNewsletter' | 'blogPosts' | 'comments' | 'AND' | 'OR' | 'NOT' | 'userSocialMedia'
ordering: 'id' | 'email' | 'firstName' | 'lastName' | 'gender' | 'yearOfBirth' | 'wantsNewsletter'
}
somePublicRecordWithIntIds: {
Expand All @@ -282,14 +287,20 @@ interface NexusPrismaInputs {
},
UserRole: {
users: {
filtering: 'id' | 'email' | 'roles' | 'firstName' | 'lastName' | 'gender' | 'yearOfBirth' | 'wantsNewsletter' | 'blogPosts' | 'AND' | 'OR' | 'NOT' | 'userSocialMedia'
filtering: 'id' | 'email' | 'roles' | 'firstName' | 'lastName' | 'gender' | 'yearOfBirth' | 'wantsNewsletter' | 'blogPosts' | 'comments' | 'AND' | 'OR' | 'NOT' | 'userSocialMedia'
ordering: 'id' | 'email' | 'firstName' | 'lastName' | 'gender' | 'yearOfBirth' | 'wantsNewsletter'
}

}, UserSocialMedia: {


}, BlogPost: {
comments: {
filtering: 'id' | 'text' | 'postId' | 'authorId' | 'AND' | 'OR' | 'NOT' | 'post' | 'author'
ordering: 'id' | 'text' | 'postId' | 'authorId'
}

}, BlogPostComment: {


}, User: {
Expand All @@ -298,9 +309,13 @@ interface NexusPrismaInputs {
ordering: 'id' | 'name'
}
blogPosts: {
filtering: 'id' | 'title' | 'text' | 'authorId' | 'AND' | 'OR' | 'NOT' | 'author'
filtering: 'id' | 'title' | 'text' | 'authorId' | 'comments' | 'AND' | 'OR' | 'NOT' | 'author'
ordering: 'id' | 'title' | 'text' | 'authorId'
}
comments: {
filtering: 'id' | 'text' | 'postId' | 'authorId' | 'AND' | 'OR' | 'NOT' | 'post' | 'author'
ordering: 'id' | 'text' | 'postId' | 'authorId'
}

}, SomePublicRecordWithIntId: {

Expand All @@ -316,6 +331,8 @@ interface NexusPrismaTypes {
userSocialMedias: 'UserSocialMedia'
blogPost: 'BlogPost'
blogPosts: 'BlogPost'
blogPostComment: 'BlogPostComment'
blogPostComments: 'BlogPostComment'
user: 'User'
users: 'User'
somePublicRecordWithIntId: 'SomePublicRecordWithIntId'
Expand All @@ -341,6 +358,12 @@ interface NexusPrismaTypes {
deleteOneBlogPost: 'BlogPost'
deleteManyBlogPost: 'BatchPayload'
upsertOneBlogPost: 'BlogPost'
createOneBlogPostComment: 'BlogPostComment'
updateOneBlogPostComment: 'BlogPostComment'
updateManyBlogPostComment: 'BatchPayload'
deleteOneBlogPostComment: 'BlogPostComment'
deleteManyBlogPostComment: 'BatchPayload'
upsertOneBlogPostComment: 'BlogPostComment'
createOneUser: 'User'
updateOneUser: 'User'
updateManyUser: 'BatchPayload'
Expand Down Expand Up @@ -373,6 +396,15 @@ interface NexusPrismaTypes {
text: 'String'
author: 'User'
authorId: 'String'
comments: 'BlogPostComment'

}, BlogPostComment: {
id: 'String'
text: 'String'
post: 'BlogPost'
postId: 'String'
author: 'User'
authorId: 'String'

}, User: {
id: 'String'
Expand All @@ -383,8 +415,10 @@ interface NexusPrismaTypes {
gender: 'Gender'
yearOfBirth: 'Int'
wantsNewsletter: 'Boolean'
interests: 'Topic'
userSocialMedia: 'UserSocialMedia'
blogPosts: 'BlogPost'
comments: 'BlogPostComment'

}, SomePublicRecordWithIntId: {
id: 'Int'
Expand All @@ -397,6 +431,7 @@ interface NexusPrismaMethods {
UserRole: NexusPrismaFields<'UserRole'>
UserSocialMedia: NexusPrismaFields<'UserSocialMedia'>
BlogPost: NexusPrismaFields<'BlogPost'>
BlogPostComment: NexusPrismaFields<'BlogPostComment'>
User: NexusPrismaFields<'User'>
SomePublicRecordWithIntId: NexusPrismaFields<'SomePublicRecordWithIntId'>
Query: NexusPrismaFields<'Query'>
Expand Down
Loading

0 comments on commit de4b8a8

Please sign in to comment.