Skip to content

Conversation

cmizzi
Copy link
Contributor

@cmizzi cmizzi commented Aug 8, 2017

Metadatas are used in order to give more powerful data to user like counting available rows without taking care from take or skip arguments.

At now, it only implements count field. Meta are automatically generated from EloquentObjectType like :

query {
   _users_meta {
      count
   } 

   users (take: 2) {
      _posts_meta {
         count
      { 

      id
      name
      posts (take: 10) {
         id
         title
         content
      }
   }
}

@cmizzi cmizzi self-assigned this Aug 8, 2017
@cmizzi cmizzi closed this Aug 8, 2017
@cmizzi cmizzi deleted the f-metadata branch August 8, 2017 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant