Clone the repository and follow the instructions for the usecase-blog example. When running pnpm seed-data, a few errors are thrown:
GraphQLError: Field "status" is not defined by type "PostCreateInput". Did you mean "tags"?
This is fixed by adding a "status" property that accepts a string to the schema.ts file in usecase-blog directory.
GraphQLError: Field "publishDate" is not defined by type "PostCreateInput".
This is fixed by adding a "publishDate" property in the schema.ts that accepts a timestamp.
`GraphQLError: An error occurred while resolving input fields.
- Post.content: Invalid document structure: [
{
"expected": "array",
"code": "invalid_type",
"path": [],
"message": "Invalid input: expected array, received string"
}
]`
I fixed this by creating a helper function in the seed-data.ts to create a document type from the post's "content" string value, but not sure what y'all would prefer.
The db should be seeded with authors and posts.
Node v24.6.0
I'd be happy to submit a pull request with these fixes but would request some guidance on the best way to do so, since I'm new to both server side development and contributing to open source projects.
Thanks for making such a cool and useful open source project!
Clone the repository and follow the instructions for the usecase-blog example. When running
pnpm seed-data,a few errors are thrown:GraphQLError: Field "status" is not defined by type "PostCreateInput". Did you mean "tags"?This is fixed by adding a "status" property that accepts a string to the schema.ts file in usecase-blog directory.
GraphQLError: Field "publishDate" is not defined by type "PostCreateInput".This is fixed by adding a "publishDate" property in the schema.ts that accepts a timestamp.
`GraphQLError: An error occurred while resolving input fields.
{
"expected": "array",
"code": "invalid_type",
"path": [],
"message": "Invalid input: expected array, received string"
}
]`
I fixed this by creating a helper function in the seed-data.ts to create a document type from the post's "content" string value, but not sure what y'all would prefer.
The db should be seeded with authors and posts.
Node v24.6.0
I'd be happy to submit a pull request with these fixes but would request some guidance on the best way to do so, since I'm new to both server side development and contributing to open source projects.
Thanks for making such a cool and useful open source project!