Bagisto Forum

    Bagisto

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    How to get data from new Package with GrahpQL ?

    Modules
    3
    3
    777
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • I
      ilyas last edited by

      Hello,

      i've created a new package and i need to get All data with GraphQL,

      how i can do it ?

      Thank you.

      1 Reply Last reply Reply Quote 0
      • sanjay-webkul
        sanjay-webkul last edited by

        Hi there,
        Can you please elaborate? Which data you are trying to retrieve by the GrahpQL API?

        1 Reply Last reply Reply Quote 0
        • L
          Luis Loshi last edited by Luis Loshi

          @ilyas said in How to get data from new Package with GrahpQL ?:

          i've created a new package and i need to get All data with GraphQL,
          how i can do it ?

          To retrieve all data using GraphQL in your new package, you can create a GraphQL query that includes all the fields that you want to retrieve. For example, if you want to retrieve all data from the CRM data enrichment sections, you can create a query like the following:
          query {
          crm {
          allData {
          id
          name
          email
          phone
          }
          }
          dataEnrichment {
          allData {
          id
          company
          jobTitle
          location
          }
          }
          }

          This query will retrieve all data from the 'allData' field of the 'crm' and 'dataEnrichment' sections. The specific fields that you can retrieve will depend on the schema of your GraphQL API, so you should consult the documentation or the schema definition to see what fields are available.

          It's worth noting that you should also take into account any limitations of the API in terms of how many records it can retrieve at once, and the performance of your application for large datasets when you are retrieving all data.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post