User loginIn and loginNotIn inputs are incorrect types and don't influence query #1174
Labels
effort: low
around a day or less
Good First Issue
Issue that doesn't require previous experience with WPGraphQL
impact: med
minor perf improvements, fix broad userbase issues
Status: In Progress
Status: 🚀 Actionable
Issues that have been curated, have enough info to take action, and are ready to be worked on
Type: Bug
Something isn't working
Milestone
When running a
WP_User_Query()
in PHP,login__in
andlogin__not_in
accept an array of user logins to be included in/excluded from the query. Docs: https://developer.wordpress.org/reference/classes/WP_User_Query/prepare_query/.When running a
users
query using WPGraphQL however, the correspondingloginIn
andloginNotIn
input fields each accept a single integer. They need to be updated to accept an array of user logins instead, and use those logins to influence the users query that ultimately gets executed.Example Query
This query shows the input fields in question:
Expected behavior:
The
loginIn
andloginNotIn
input fields would take an array of user logins as strings, which would then be used when the users query is run.Actual behavior:
The
loginIn
andloginNotIn
input fields each take a single integer, and are not used when the users query is run.Plugin Version
WPGraphQL version: 0.7.0
The text was updated successfully, but these errors were encountered: