No
- a:
code(hi)Ok:stuff - b:
code(hi)
Ok:
| package main | |
| import ( | |
| "errors" | |
| "fmt" | |
| "log" | |
| ) | |
| func main() { | |
| // Since FindMany only reads data, there can be no expected errors. There may |
| #!/bin/sh | |
| # This script checks if the prisma e2e test workflow passes | |
| # Check the end of the file for usage | |
| check() { | |
| str=$(curl -s "https://github.com/$1/workflows/$2/badge.svg") | |
| case "$str" in | |
| *"passing"*) |
No
code(hi)
Ok:
stuffcode(hi)Ok:
localhost/user
localhost/user?name[equals]=stuff
localhost/user?name[contains]=stuff
func (r UserResolver) User(ctx context.Context, input UserFilterInput) (User, error) {
query := User.Query()
localhost/user
localhost/user?name[equals]=stuff
localhost/user?name[contains]=stuff
func (r UserResolver) User(ctx context.Context, input UserFilterInput) (User, error) {
query := User.Query()
user, err := client.User.FindOne().Exec(ctx)
email, ok := user.Email()
if !ok {
return fmt.Errorf("email is null")
}
log.Printf("User email is set")Proposal for selecting multiple things as alternative for the initial proposal
The prisma types could be generated with all relations a type can have. For example, when a User can have Posts and a Post has an Author, the respective types define the relation in the struct.
// generated code by prisma| sudo sed -i "s/#\{0,1\}Port .*/Port xxxx/" /etc/ssh/sshd_config | |
| sudo sed -i "s/#\{0,1\}PasswordAuthentication yes/PasswordAuthentication no/" /etc/ssh/sshd_config | |
| service sshd reload |