- Use
yarn
instead ofnpm
(at least for now) - Check
yarn.lock
into version control yarn.lock
file is automatically ignored from publishing
- Make
graphql
a peer dependency (+ dev dependency if needed) in libraries
with import <nixpkgs> {}; | |
# prisma-bin.nix | |
let | |
prismaDrv = {stdenv,fetchurl,openssl,zlib,autoPatchelfHook,lib} : | |
let | |
hostname = "binaries.prisma.sh"; | |
channel = "all_commits"; | |
target = "debian-openssl-1.1.x"; | |
baseUrl = "https://${hostname}/${channel}"; |
export const createOpenPromise = () => { | |
let resolve: () => void | |
return { | |
promise: new Promise((resolve_: any) => { | |
resolve = resolve_ | |
}), | |
resolve: resolve!, | |
} | |
} |
import type { Context } from '../../'; | |
type EditReleaseInput = { | |
data: { | |
releaseId: string, | |
title?: string, | |
}, | |
}; | |
export default async ( |
import type { Context } from '../../'; | |
type EditReleaseInput = { | |
data: { | |
releaseId: string, | |
title?: string, | |
}, | |
}; | |
export default async ( |
import * as Bluebird from 'bluebird' | |
const myMutations = [ | |
'mutation1: createItem(title: "Node 1") { id }', | |
'mutation2: createItem(title: "Node 2") { id }', | |
// ... | |
] | |
const transport = new Transport('my-graphcool-api') | |
const crm = new Lokka({transport}) |
{ | |
movie(title: "Inception") { | |
releaseDate | |
actors(first: 10) { | |
edges { | |
node { | |
name | |
} | |
} | |
} |
{ | |
movie(title: "Inception") { | |
releaseDate | |
actors { | |
name | |
} | |
} | |
} |
extension UIImage { | |
func fixedOrientation() -> UIImage { | |
if imageOrientation == UIImageOrientation.Up { | |
return self | |
} | |
var transform: CGAffineTransform = CGAffineTransformIdentity | |