query property

QueryModel get query

Implementation

QueryModel get query {
  List<QueryFilter>? filters = this.filters;
  if (this.id != null) {
    filters = [
      QueryFilter(
        attribute: 'id',
        condition: QueryCondition.Equal,
        value: this.id,
      )
    ];
  }

  return QueryModel(
      resourceName: this.apiResourceName as String,
      tableName: this.tableName as String,
      singularResourceName: this.singularResourceName,
      fields: this.fields as List<String>,
      filters: filters,
      relations: this.relations,
      columns: this.repository.columns,
      junctionOperator: this.junctionOperator);
}