Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use sqlite as default database for demo project #10

Closed
wants to merge 4 commits into from

Conversation

ewgenius
Copy link

  • switched to sqlite provider
  • applied default formatting rules to schema file (prisma docs)
  • fixed few type issues on blitzjs/core and example controllers

image

image

@ewgenius ewgenius requested a review from flybayer February 26, 2020 20:00
@flybayer
Copy link
Member

I'm closing this, because i have a bunch of changing incoming shortly. We can revisit sqlite after this.

@flybayer flybayer closed this Feb 26, 2020
@ewgenius ewgenius deleted the use-sqlite-db branch February 26, 2020 20:11
@@ -23,7 +24,7 @@ export const PostsController = Controller(({db}) => ({

async create(params, newData) {
const data = await db.post.create({
data: newData,
data: newData as PostCreateInput,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of this change, we need to set up the types so that newData here automatically includes the attributes defined in permit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants