To get your own Prisma client explorer on CodeSandbox that allows for database writes, you need to perform the following steps:
Personal response to this Twitter thread
I've just been taking a hard look at prisma. and to me it seems like crutch, rather than a solution. my guess is that it works for very simple stuff, but it's not usable for anything more or less "serious".
There are many serious developers and larger companies using Prisma in production today, such as adidas, HyreCar (recently IPOed) or Labelbox (just raised 10mio series A). We have no doubt that Prisma can be used for "serious" applications!
The docs are basically marketing material. "under the hood" doc provides no information I was hoping to find at least there. starting from "how queries are optimized"? some tutorial says there's a dataloader, but that's about it.
You're definitely right that our docs are lacking behind at the moment! We are working on the nex
This project uses a hosted database that has writes disabled. Follow these steps to set up your own demo database that lets you perform database writes:
To get your own version of this sandbox, click the Fork button in the top-left corner (then wait until the embedded browser in the new Sandbox ):
"""Autogenerated input type of AcceptTopicSuggestion""" | |
input AcceptTopicSuggestionInput { | |
"""The Node ID of the repository.""" | |
repositoryId: ID! | |
"""The name of the suggested topic.""" | |
name: String! | |
"""A unique identifier for the client performing the mutation.""" | |
clientMutationId: String |
This page contains a lot of legalese pertaining to policies and terms. It's all very formal but everything here is guided by the following principles:
- Your data is safe.
- You own your data.
- Stability and uptime of the Graphcool cloud platform are paramount.
- Prisma is built by developers for developers. We will strive to make every interaction with Prisma an easy and painless experience.
### This file was autogenerated by Nexus 0.9.9 | |
### Do not make changes to this file directly | |
type AggregatePost { | |
count: Int! | |
} | |
type AggregateUser { | |
count: Int! |
type Post { | |
id: ID! @unique | |
createdAt: DateTime! | |
updatedAt: DateTime! | |
title: String! | |
published: Boolean! @default(value: "false") | |
author: User | |
comments: [Comment!]! | |
} |
const UserType = new GraphQLObjectType({ | |
name: 'User', | |
fields: { | |
id: { type: GraphQLID }, | |
name: { type: GraphQLString }, | |
}, | |
}) | |
const schema = new GraphQLSchema({ | |
query: new GraphQLObjectType({ |
// graphql-yoga | |
const server = new GraphQLServer({ schema }) | |
server.start(() => { | |
console.log(`Server ready at http://localhost:4000`) | |
}) | |
// apollo-server | |
const server = new ApolloServer({ schema }) | |
server.listen({ port: 4000 }, () => | |
console.log(`Server ready at http://localhost:4000`), | |
) |