Skip to content

Instantly share code, notes, and snippets.

View gotenxds's full-sized avatar

David limkys gotenxds

  • none
  • Israel
View GitHub Profile
async function rainSomeCatsAndDogs() {
const [dogs, cats] = await Promise.all([getDogs(), getCats()]);
 
await makeItRain(cats, dogs);
openAnimalProffUmbrella();
}
{
allAccounts(first: 10, offset: 20, condition:{ company: 1 })
{
nodes {
companyId: company
companyByCompany {
name
id
}
}
allAccounts
{
nodes {
companyId: company
companyByCompany {
name
id
}
}
}
@gotenxds
gotenxds / x.js
Created September 17, 2020 10:27
import pg from 'pg';
import { ApolloServer } from 'apollo-server';
import { makeSchemaAndPlugin } from 'postgraphile-apollo-server';
export default async () => {
const pgPool = new pg.Pool({
"user": "postgres",
"database": "postgres",
"password": "secret",
"host": "localhost"