Skip to content

[FEATURE]: AI hallucinates && operators between conditions - either add this or make it easier to spot #4986

@tornikeo

Description

@tornikeo

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Basically, AI hallucinated (several times and in different places, mind you) that an && operator is supported between conditions in a query. e.g.:

      const project = await ctx.db.query.projects.findFirst({
        where: (projects, { eq, and }) => 
            (eq(projects.urlSlug, input.projectUrlSlug) && eq(projects.organizationId, org.id)),
      });

This is plainly incorrect but AI seems to make this mistake a LOT. Making it easier to spot this error (or supporting this kind of query outright) would have a good impact.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions