tsingsun / yii2-graphql

facebook graphql server side for yii2 php framework
98 stars 26 forks source link

Count items on the list #13

Open iluxaar opened 5 years ago

iluxaar commented 5 years ago

Hello. How to add information about number of records in the type of sheet? Need to create new object type? Can you describe it in the documentation? For example:

{ "data": { "products": [ { "id": "14913913", "cost": 20086 }, { "id": "14948257", "cost": 9150 } ], "listInfo": { "count": 2 } } }

tsingsun commented 5 years ago

u can create a ListInfo Model to implement,it's depend your's business logic