This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
query { | |
aggBuckets(params:{ | |
agg: "facility_states" | |
}) { | |
aggs { | |
name | |
docCountErrorUpperBound | |
sumDocOtherCount | |
buckets { | |
key |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import { graphql } from 'react-apollo'; | |
import gql from 'graphql-tag'; | |
import _ from 'lodash'; | |
class SomeComponent extends React.Component { | |
render() { | |
const someFieldMap = { nctId: 'nct_id', averageRating:'average_rating' }; | |
const fields = _.map(someFieldMap, (value, key) => `${key}:field(name:"${value}")`); | |
const query = gql` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
query getCrowdFacets($q:String) | |
aggBuckets(params:{ | |
q: $q | |
agg: "front_matter_keys" | |
}) { | |
aggs { | |
buckets { | |
key | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
query crowdAggBuckets($q:String! $crowdAgg:String! { | |
crowdAggBuckets(params:{ | |
q:$q | |
agg:$crowdAgg | |
}) { | |
aggs{ | |
buckets { | |
key | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"Mappings": { | |
"EnvironmentMap": { | |
"qa": { | |
"lambdaSubnets": "subnet-1c6a4634,subnet-aadf34dd" , | |
"lambdaSecurityGroups": "sg-b58c1ad0,sg-007b3e50d822ab4b6" | |
}, | |
"prod": { | |
"lambdaSubnets": "subnet-076822f8311733aa2,subnet-01be8dd54e536738b", | |
"lambdaSecurityGroups": "sg-015d3589ebaddb5ef", | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import { compose, graphql } from 'react-apollo'; | |
// i actually recommend .graphql files with the webpack loader from this library | |
import { gql } from 'graphql-tag'; | |
import TextField from '@material-ui/core/TextField'; | |
import Button from '@material-ui/core/Button'; | |
import CircularProgress from '@material-ui/core/CircularProgress'; | |
const entryQuery = gql` | |
query lookupEntry($key: String!) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Query | |
query { | |
synonyms { | |
id | |
text | |
} | |
} | |
# Response |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 397 results | |
query { | |
searchProducts(q:"Xl" fields:"title,size") { | |
total | |
edges { | |
node { | |
source | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
card_branch_name() { | |
if [ ! -n "${UT_TEAM}" ]; then | |
echo "\$UT_TEAM not set!" && return 1; | |
fi | |
project=$1 | |
url=$2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
bundle exec rspec $(git status | grep spec | grep "modified:" | cut -b 14-) |