Skip to content

How to return array in query and mutation #2167

@Passupphp

Description

@Passupphp

Hello,

Please let me know guys, how can i give the images array result on my return.

Query
type GetAllProducts{
id: ID!
title: String
description: String
userId: Int
featured: Int
isFree: Boolean
isBlocked: Boolean
instantBuy: Boolean
groupsId: String
}

Expected Result
"data": {
"getAllProducts": [
{
"id": "10112",
"images": [
"https://res.cloudinary.com/deonpjx2g/image/upload/v1655384211/fileStorage/uploads/products/10112/i9gngghwzzmy9gthckxy.png"
],
"featured": null,
"userId": 10018,
"isFree": true,
"instantBuy": false,
"isBlocked": false,
"title": "etgre",
"description": "ete",
"groupsId": null
},

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateAlready present in another issuequestionRequest for support or clarification

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions