Skip to content

Instantly share code, notes, and snippets.

@qix
Created April 29, 2015 22:52
Show Gist options
  • Save qix/b4f478205f8114b2e0ac to your computer and use it in GitHub Desktop.
Save qix/b4f478205f8114b2e0ac to your computer and use it in GitHub Desktop.
```
ItemName: [ForeignFeature.fromFeatureGraph, 'CampaignGraph', {
outputType: 'String',
remoteFeatureName: 'ItemName',
}],
*/
// = String.fromGraphAndFeature
ItemName: ['String', 'CampaignGraph', 'Feature("ItemName")'],
/*
SharingUrls: [ListFeature.fromScalar, 'CampaignSharingUrl'],
*/
// = List<Url> from Url
// = List.fromScalar
SharingUrls: ['List<Url>', 'CampaignSharingUrl'],
/*
Currency: [StringFeature.fromConstantValue, {
value: 'USD',
}],
*/
Currenty: ['Currency', 'String("USD")'],
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment