graphiti
graphiti copied to clipboard
How to generate meta object
I want to be able to generate meta object on a top-level document (for resource collection), but also for a resource object.
Is it possible with Graphiti? I know the DSL ::stats method can be used to generate the "meta object" for stats
.
No per-resource metadata at the moment (most clients don't parse it), but would love to see
I dig into the code and see how it could be done.
@richmolj how can I set it for resource collection response (not is the stats
key)?
respond_with(resource, meta: { some: 'thing' })