Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StartsWith not generating appropriate filter #77

Open
GavinMendelGleason opened this issue Mar 10, 2023 · 0 comments
Open

StartsWith not generating appropriate filter #77

GavinMendelGleason opened this issue Mar 10, 2023 · 0 comments

Comments

@GavinMendelGleason
Copy link
Member

starts_with

The correct query should be along the lines of:

query{
  People(filter:{homeworld:{label:{startsWith:"N"}}}){
    label
    homeworld{
      label
    }
  }
}

What is actually generated is:

query PeopleQuery($offset: Int, $limit: Int , $filter: People_Filter , $orderBy: People_Ordering ) {
	People(offset: $offset, limit: $limit , filter: $filter , orderBy: $orderBy) {
		_id
		birth_year 
		created 
		desc 
		edited 
		eye_color 
		gender 
		hair_colors 
		height 
		homeworld {
			_id
		}
		label 
		mass 
		skin_colors 
		species {
			_id
		}
		url
	}
}
{
    "offset": 0,
    "limit": 10,
    "orderBy": {},
    "filter": {
        "homeworld": {
            "label": {
                "regex": "(ˆ)\"N\""
            }
        }
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant