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
Find a document that has an array value of "artist" in the keyAudience array | |
where ARRAY_CONTAINS(c.keyAudiences, "artist") |
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
https://github.com/prisma/prisma-cloud-feedback/issues/202#issuecomment-414095090 | |
I looked up prisma's latest docker hub tags at https://hub.docker.com/r/prismagraphql/prisma/tags/ and picked 1.14-heroku (not sure what the difference is in *-heroku tags, but it sounded reasonable. Could someone from Prisma explain the difference?) | |
I read Heroku's docs on docker deployment and followed this section: https://devcenter.heroku.com/articles/container-registry-and-runtime#pushing-an-existing-image. | |
Here's the exact steps I ran: | |
Pulled the docker image w/ the tag mentioned above: docker pull prismagraphql/prisma:1.34-heroku | |
Looked up the image id from the image I just pulled using: docker images | |
Using that image id, I tagged it to my Heroku repo: docker tag 6ff588b05d59 registry.heroku.com/${HEROKU_APP_NAME}/web |
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
const users = [ | |
{ | |
firstName: 'Sarah', | |
lastName: 'Zulu', | |
email: 'sarah.zulu@test.com', | |
}, | |
{ | |
firstName: 'Josh', | |
lastName: 'Able', | |
email: 'sarah.zulu@test.com', |
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
const users = [ | |
{ | |
firstName: 'Sarah', | |
lastName: 'Zulu', | |
}, | |
{ | |
firstName: 'Josh', | |
lastName: 'Able', | |
}, | |
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 { graphql } from 'react-apollo'; | |
import gql from 'graphql-tag'; | |
import Inbox from './Inbox'; | |
import TaskList from '../components/TaskList'; | |
const withData = graphql( | |
gql` | |
query InboxQuery { | |
me { |
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
var convertStringToBoolean = function(yourVariable){ | |
return yourVariable ? yourVariable === "Y" ? true : false : null; | |
} |
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
Trying this | |
Stripe.customers.update(customer_id, { | |
"metadata.city": form['address.city'], | |
"metadata.state": form['address.state'], | |
"metadata.address_line1": form['address.address_line1'], | |
"metadata.address_line2": form['address.address_line2'], | |
"metadata.postal_code": form['address.postal_code'], | |
"metadata.phone": form.phone | |
}, function (error, customer) { |
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 the official balanced nodejs package | |
var balanced = require('balanced-official'); | |
// Create a new API Key and configure the client with it | |
// The client automatically creates a new test marketplace for us | |
// if a marketplace does not exist for the api key | |
balanced.configure(apikey); | |
// Create a customer with some dummmy data | |
balanced.get('https://api.balancedpayments.com/debits/WD5rJ4kojAowU1YW4pz86Tb').then(function(debit) { |
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
[ | |
{ | |
"_id" : "Philippines Infrastructure", | |
"total" : 3400, | |
"count" : 1 | |
}, | |
{ | |
"_id" : "Philippines Urgent", | |
"total" : 1100, | |
"count" : 1 |
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
{ _api: | |
I20141209-15:18:16.384(-6)? { base_url: 'https://api.balancedpayments.com/', | |
I20141209-15:18:16.385(-6)? request_args: { headers: [Object], auth: [Object] }, | |
I20141209-15:18:16.385(-6)? routes: | |
I20141209-15:18:16.385(-6)? { marketplaces: [Object], | |
I20141209-15:18:16.385(-6)? customers: [Object], | |
I20141209-15:18:16.385(-6)? bank_accounts: [Object], | |
I20141209-15:18:16.385(-6)? orders: [Object] }, | |
I20141209-15:18:16.385(-6)? cache: | |
I20141209-15:18:16.385(-6)? { '/marketplaces/TEST-MP14BPoPFdKRdPSEx6V15MIl': [Object], |
NewerOlder