Skip to content

Commit

Permalink
Update migration
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewquang512 committed Oct 30, 2023
1 parent 9f09278 commit eda1a26
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 4 deletions.
11 changes: 11 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"graphql": "^16.8.1",
"graphql-tag": "^2.12.6",
"jimp": "^0.22.8",
"lodash": "^4.17.21",
"prisma-erd-generator": "^1.2.4",
"uuid": "^9.0.1",
"ws": "^8.11.0"
Expand All @@ -43,8 +44,8 @@
"@types/uuid": "^9.0.5",
"babel-loader": "^9.1.3",
"nodemon": "^1.19.4",
"prisma": "^5.5.2",
"rimraf": "^5.0.5",
"webpack-cli": "^5.1.4",
"prisma": "^5.5.2"
"webpack-cli": "^5.1.4"
}
}
9 changes: 9 additions & 0 deletions src/Type_Definitions/Post_Post.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import gql from 'graphql-tag';
import tagDefs from './Tag_Tag.js';
import userDefs from './User_User.js';

const postDefs = gql`
extend type Query {
Expand All @@ -17,6 +19,13 @@ const postDefs = gql`
similarImages(data: SimilarImagesInput!): [Image]!
}
type SearchReturnType {
tags: [Tag]!
users: [User]!
}
${tagDefs}
${userDefs}
input SimilarImagesInput {
postId: ID!
}
Expand Down
2 changes: 1 addition & 1 deletion src/prisma/ERD.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/resolvers/Query/STORY.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const storyQuery = {
console.log('Result', result);
console.log('count', count);

const hasNextPage = result.length !== 0 || result.length <= count;
const hasNextPage = result.length !== 0 && result.length <= count;
// console.log(nodes.slice(-1));
console.log({ hasNextPage });

Expand Down

0 comments on commit eda1a26

Please sign in to comment.