node question
# support-questions
i
Hi @rp, I found out that in version 13.4.0 an api was added to search for users (a query parameter appeared). However, it was added only to supertokens.js along the path supertokens-node/lib/build/supertokens.js, and at the same time, the getUsers function with the optional query parameter is missing in the supertokens-node/lib/build/index.js file. For this reason, I cannot import and use it. I will be grateful for your help
r
hey @IaS1506 I don't think i understand the question. Can you please rephrase?
i
And I want to import this method directly from supertokens-node
like
import { getUsersOldestFirst } from 'supertokens-node'
With that
import { getUsers } from 'supertokens-node'
But all methods I can import like this is in index.d.ts
r
ah right. So the getUsers function is not exposed. Instead the
getUsersOldestFirst
and
getUsersNewestFirst
are wrappers on top of this function
i
But in functions you provided there is no query parameter
That i want to use
r
right. I see. So that's for internal use. What's the use case here?
You could also import like this:
Copy code
import {getUsers} from "supertokens-node/lib/build/supertokens"
Maybe this will work.
but this is an internal import. so it might change in the future and not be a breaking change.. so be careful
i
I want to implement search over users by email, id and other specific filters that you are not provided by search with tags
r
understood. We can expose the query params via the newest first and oldest first functions.. but that will be done in a few days.
i
Ok thank you