UnlyEd/ra-data-graphql-prisma

View on GitHub

Showing 26 of 40 total issues

Avoid too many return statements within this function.
Open

        return { ...acc, [parts[0]]: { id: params.filter[key] } };
Severity: Major
Found in src/buildVariables.ts - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

            return {
              ...acc,
              where: {
                id: params.data[fieldName],
              },
    Severity: Major
    Found in src/buildVariables.ts - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

            return acc;
      Severity: Major
      Found in src/buildGqlQuery.ts - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

              return {
                ...acc,
                [`${field.name}.id`]: linkedResourceData
                  ? record[field.name].id
                  : undefined,
        Severity: Major
        Found in src/getResponseParser.ts - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                    return {
                      ...acc,
                      data: {
                        ...acc.data,
                        [fieldName]: { [PRISMA_CONNECT]: { ...fieldsToConnect } },
          Severity: Major
          Found in src/buildVariables.ts - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                return { ...acc, [field.name]: record[field.name] };
            Severity: Major
            Found in src/getResponseParser.ts - About 30 mins to fix
              Severity
              Category
              Status
              Source
              Language