Skip to content

Commit

Permalink
remove type-graphql types
Browse files Browse the repository at this point in the history
  • Loading branch information
reversefuture committed Apr 14, 2024
1 parent 6e07113 commit cdad6a0
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 15 deletions.
64 changes: 64 additions & 0 deletions docs/prisma-orm.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,70 @@
# API
https://www.prisma.io/docs/orm/reference/prisma-client-reference?query=NOT&page=1

## Commands
```sh
$ prisma [command]

Commands

init Set up Prisma for your app
generate Generate artifacts (e.g. Prisma Client)
db Manage your database schema and lifecycle
migrate Migrate your database
studio Browse your data with Prisma Studio
validate Validate your Prisma schema
format Format your Prisma schema

Flags

--preview-feature Run Preview Prisma commands

Examples

Set up a new Prisma project
$ prisma init

Generate artifacts (e.g. Prisma Client)
$ prisma generate

Browse your data
$ prisma studio

Create migrations from your Prisma schema, apply them to the database, generate artifacts (e.g. Prisma Client)
$ prisma migrate dev

Use --name to provide a custom name for the migration:
$ npx prisma migrate dev --name <migration_name>

Pull the schema from an existing database, updating the Prisma schema
$ prisma db pull

Push the Prisma schema state to the database
$ prisma db push

Apply pending migrations to update your database schema:
$ npx prisma migrate deploy

Rollback applied migrations to revert changes to your database schema:
$ npx prisma migrate reset


Seed the database with initial or test data:
$ npx prisma db seed

Validate your Prisma schema
$ prisma validate

Format your Prisma schema
$ prisma format

Generate Schema Documentation:
$ npx prisma generate --doc
```




## Filter conditions and operators
**Equal to (equals or ==)**
>Syntax: fieldName: { equals: value }
Expand Down
2 changes: 1 addition & 1 deletion src/http/auth.http
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# baseURL
@baseURL = http://localhost:3000
@baseURL = http://localhost:3000/api

###
# User Signup
Expand Down
2 changes: 1 addition & 1 deletion src/http/users.http
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# baseURL
@baseURL = http://localhost:3000
@baseURL = http://localhost:3000/api

###
# Find All Users
Expand Down
13 changes: 0 additions & 13 deletions src/types/users.type.ts

This file was deleted.

0 comments on commit cdad6a0

Please sign in to comment.