Skip to content

Instantly share code, notes, and snippets.

View imranolas's full-sized avatar

Imran Sulemanji imranolas

View GitHub Profile
@imranolas
imranolas / cache.js
Created December 5, 2017 12:25
Sketches for composable caches
/**
* Cache hits should cascade from top to bottom returning from the the first match
* all the way down to the last and merging results along the way.
*
* eg. query {
* user {
* name
* email
* }
* }
@imranolas
imranolas / LeadData.md
Last active November 16, 2017 12:26
A propose schema for lead data

Proposed Lead Data

Given the opaque nature of JSON data the following could work nicely as an alternative allowing effective introspection.

type Lead {
  ...
  data: LeadData
}

Schema issues

  • Fields where ids are specified should resolve to their referenced type.
- agentAdId: UUID!
+ agentAd: AgentAd!
  • The data field should ideally be part of the schema definition rather than JSON scalar. A JSON scalar doesn't allow us to know what we're querying for and is undocumented, so we can't develop against it.

  • Subscription is a reserved word in GraphQL.

Verifying that +imranolas is my blockchain ID. https://onename.com/imranolas
@imranolas
imranolas / gist:997ebf9c55a0e70ad0fe
Last active November 28, 2017 19:12
keybase.md

Keybase proof

I hereby claim:

  • I am imranolas on github.
  • I am imranolas (https://keybase.io/imranolas) on keybase.
  • I have a public key ASByJieBN0Tyj-MKXLhd-cHYQDX16L7u_lVwjoB3Ird9Rwo

To claim this, I am signing this object:

@imranolas
imranolas / affirmation
Created August 13, 2014 08:13
MuleSoft Contributor Agreement Acceptance by Imran Sulemanji
I, Imran Sulemanji, have read and do accept the MuleSoft Contributor Agreement
at http://www.mulesoft.org/legal/contributor-agreement.html
Accepted on Wed Aug 13 2014 09:13:36 GMT+0100 (BST)