@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.