Remove hasura and hasura-auth (#134)

* Remove hasura and hasura-auth

* Move all models to prisma

* Start implementing graphql

* chore: clean package json

* chore: make the code build

* chore: get initial graphql.tsx file

* feature: use typegql as qgl server

* refactor: small refactoring

* refactor: clean tests

* bugfix: make all filters not case sensitive

* chore: remove unused imports

---------

Co-authored-by: Sammy Teillet <sammy.teillet@gmail.com>
This commit is contained in:
Charles Bochet
2023-05-24 17:20:15 +02:00
committed by GitHub
parent 7192457d0a
commit 5d06398d2e
177 changed files with 12215 additions and 7040 deletions

View File

@ -0,0 +1,21 @@
import { PrismaClient } from '@prisma/client'
export const seedWorkspaces = async (prisma: PrismaClient) => {
await prisma.workspace.upsert({
where: { domainName: 'twenty.com' },
update: {},
create: {
id: '7ed9d212-1c25-4d02-bf25-6aeccf7ea419',
displayName: 'Twenty',
domainName: 'twenty.com',
},
})
await prisma.workspace.upsert({
where: { domainName: 'claap.com' },
update: {},
create: {
id: '7ed9d212-1c25-4d02-bf25-6aeccf7ea420',
displayName: 'Claap',
domainName: 'claap.com',
},
})
}