getRelationFields static method

dynamic getRelationFields(
  1. dynamic relations
)

Implementation

static getRelationFields(relations) {
  return relations.map((relation) {
    // return `${relation.resourceName}[${[
    //   ...relation.fields,
    //   ...getRelationFields(relation.relations),
    // ].join(',')}]`;
  });
}