We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
origin
I wanted to perform this and I thought it's gonna work:
const dbEntries = await paginate(query, this.clientsRepo, { sortableColumns: getColumns(this.clientsRepo, true).names, select: getColumns(this.clientsRepo, true).names, origin: '', // 👈 })
But it didn't, I wanted to change the links.cuurent origin, from:
links.cuurent
"links": { "current": "http://localhost:3001/clients?page=1&limit=20&sortBy=accountType:ASC&select=username,accountType" }
to
"links": { "current": "/clients?page=1&limit=20&sortBy=accountType:ASC&select=username,accountType" }
But it doesn't work, I also tried to put "/", but it resulted in double slashes as follows:
"/"
"links": { "current": "//clients?page=1&limit=20&sortBy=accountType:ASC&select=username,accountType" }
I think this is because the library somewhere in its code checks on the property if it exists by some approach like this:
if(!!origin) { /* do the `origin` logic */ }
I think it should handle this case by something like this:
if(origin == "" || !!origin) { /* do the `origin` logic */ }
The text was updated successfully, but these errors were encountered:
I like origin '/' more as a notation for this than ''. We'd love to see a PR for this with a test that verifies this works as expected :)
'/'
''
Sorry, something went wrong.
No branches or pull requests
I wanted to perform this and I thought it's gonna work:
But it didn't, I wanted to change the
links.cuurent
origin, from:to
But it doesn't work, I also tried to put
"/"
, but it resulted in double slashes as follows:I think this is because the library somewhere in its code checks on the property if it exists by some approach like this:
I think it should handle this case by something like this:
The text was updated successfully, but these errors were encountered: