Comments (3)
If you created the fields using Studio then nothing else should be done.
This section
public function build($config)
{
foreach (argsHelper::entityArgsHelper('Tasks', true) as $field => $type) {
$config->addField($field, $type);
}
}
Will go through the module available fields and add them to the valid arguments.
So if you added a field named mycustomfield_c
you can query the tasks module using
tasks( mycustomfield_c: "123"){
name
}
it will just work no need for anything else
In the case where you need a range, there are 2 automatically created arguments, start_range_NAMEOFTHE FIELD and end_rage_NAMEOFTHEFIELD.
For this example start_range_mycustomfield_c and end_range_mycustomfield_c
will be valid arguments to query.
from graphqlsuitecrm.
Hello,
Thanks for quick response. I have create custom module using module builder(I have not used studio to create custom modules)
So would you please provide example for custom module using module builder.
also I need custom module multiple mutations example. I have create custom module mutations and its working fine (Crud operations) but I want to add more mutations based on conditions, Would you please provide us example of how to define multiple mutations for same modules.
Thanks
from graphqlsuitecrm.
from graphqlsuitecrm.
Related Issues (18)
- Unable to load db manager HOT 8
- Relational module Query and mutations HOT 5
- Give error when return relational table field HOT 3
- How to handle custom error in rest.php file HOT 1
- How to Improve Query and mutations Performance. HOT 5
- Additional field not working in custom Mutation (using custom module) HOT 1
- How to pass value in SuiteCRMSchema file HOT 1
- How to check authentication? HOT 1
- where to create middleware to check authentication on each request HOT 1
- GraphiQL no schema available HOT 1
- "message": "Unknown argument \"start_range_date_entered\" on field \"calls\"", HOT 5
- Return next offset when using offset parameter HOT 3
- Provide Proper documentation how to use this libary HOT 8
- Mutation not working HOT 1
- How to Create schema for custom modules HOT 4
- How to get records by descending order? HOT 2
- How to get total count of records with query result? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from graphqlsuitecrm.