Fragment | R Documentation |
ghql fragment class
a 'Fragment' class (R6 class)
fragments
(list) list of fragments
print()
print method for the 'Fragment' class
Fragment$print(x, ...)
x
self
...
ignored
fragment()
create a fragment by name
Fragment$fragment(name, x)
name
(character) fragment name
x
(character) the fragment
nothing returned; sets fragments internally
# make a fragment class frag <- Fragment$new() # define a fragment frag$fragment('Watchers', ' fragment on Repository { watchers(first: 3) { edges { node { name } } } }') # define another fragment frag$fragment('Stargazers', ' fragment on Repository { stargazers(first: 3) { edges { node { name } } } }') frag frag$fragments frag$fragments$Watchers frag$fragments$Stargazers
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.