Skip to content

Instantly share code, notes, and snippets.

@wilkerlucio
Last active April 2, 2017 21:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wilkerlucio/fc7e80d65c0b0bbe5e0244c273c6c98a to your computer and use it in GitHub Desktop.
Save wilkerlucio/fc7e80d65c0b0bbe5e0244c273c6c98a to your computer and use it in GitHub Desktop.
ONCP
(om/defui ^:once BasicChannelView
static om/IQuery
(query [_] [:channel/id {:channel/snippet [:channel/title]}]))
(om/defui ^:once ComplexChannelView
static om/IQuery
(query [_] [:channel/id
{:channel/snippet
[:channel/title
{:channel/thumbnails
[{:thumbnail/default [:thumbnail/url]}]}]}
{:channel/statistics [:channel/subscriber-count]}]))
(om/defui ^:once VideoComponent
static om/IQuery
(query [_] [:video/id
{:video/snippet
;; We want to query for both, what we place here?
[{:video/channel '?????}]}]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment