deep-foundation / deep-foundation/deeplinks
_not is not working as intended
- Dominant language
- TypeScript
- Stars
- 13
- Forks
- 8
- PR merge metrics
- No merged PRs in 30d
Description
### Describe the bug
# Non Working Query
```ts
const installLinkId = 1077;
const packageName = "@deep-foundation/deep-memo"
await deep.select({
id: installLinkId,
out: { // Look at this line and line below
_not: {
type_id: await deep.id("@deep-foundation/npm-packager", "Installed"),
to: {
id: {
_id: [packageName]
}
}
}
}
})
```
# Working Query
```ts
const installLinkId = 1077;
const packageName = "@deep-foundation/deep-memo"
await deep.select({
id: installLinkId ,
_not: { // Look at this line and line below
out: {
type_id: await deep.id("@deep-foundation/npm-packager", "Installed"),
to: {
id: {
_id: [packageName ]
}
}
}
}
})
```
# Description
I think both queries should work
### Expected Behavior
Both queries should work
### Current Behavior
Only query with `_not: {out: ...}` is working while `out: {_not: ...}` is not working
### Steps to reproduce
1. Install any package
2. Change variable `packageName` to your package name and `installLinkId` to link id of your install link
3. See the same result by using both queries
### Environment
```
gitpod /workspace/dev/packages/deeplinks (main) $ npx envinfo --system --npmPackages --markdown
## System:
- OS: Linux 6.1 Ubuntu 22.04.2 LTS 22.04.2 LTS (Jammy Jellyfish)
- CPU: (16) x64 AMD EPYC 7B13
- Memory: 53.46 GB / 62.79 GB
- Container: Yes
- Shell: 5.1.16 - /bin/bash
## npmPackages:
- @apollo/client: ^3.7.14 => 3.7.14
- @deep-foundation/hasura: ^0.0.46 => 0.0.49
- @deep-foundation/materialized-path: ^0.0.25 => 0.0.25
- @deep-foundation/npm-packager: ^0.0.38 => 0.0.38
- @deep-foundation/react-hasura: ^0.0.16 => 0.0.16
- @deep-foundation/store: ^0.0.19 => 0.0.19
- @deep-foundation/tsx: ^0.0.4 => 0.0.4
- @testing-library/jest-dom: ^5.16.5 => 5.16.5
- @testing-library/react: ^14.0.0 => 14.0.0
- @types/fs-extra: ^11.0.1 => 11.0.1
- @types/jest: ^29.5.1 => 29.5.2
- @types/node: ^20.2.4 => 20.2.5
- @types/react: ^18.2.15 => 18.2.15
- apollo-server: ^2.26.1 => 2.26.1
- apollo-server-core: ^3.12.0 => 3.12.0
- apollo-server-express: ^3.12.0 => 3.12.0
- atob: ^2.1.2 => 2.1.2
- axios: ^1.4.0 => 1.4.0
- body-parser: ^1.20.2 => 1.20.2
- buffer: ^6.0.3 => 6.0.3
- chai: ^4.3.7 => 4.3.7
- clean-webpack-plugin: ^4.0.0 => 4.0.0
- cookie-parser: ^1.4.6 => 1.4.6
- cross-env: ^7.0.3 => 7.0.3
- debug: ^4.3.4 => 4.3.4
- dotenv: ^16.0.3 => 16.1.3
- electron: ^13.1.9 => 13.1.9
- fix-path: ^3.0.0 => 3.0.0
- fs-extra: ^11.1.1 => 11.1.1
- get-port: ^5.1.1 => 5.1.1
- gists: ^2.0.0 => 2.0.0
- graphql: ^15.8.0 => 15.8.0
- graphql-playground-middleware-express: ^1.7.23 => 1.7.23
- graphql-tag: ^2.12.6 => 2.12.6
- http-proxy-middleware: ^2.0.6 => 2.0.6
- internal-ip: ^6.2.0 => 6.2.0
- jest: ^29.5.0 => 29.5.0
- jest-environment-jsdom: ^29.5.0 => 29.5.0
- jsonschema: ^1.4.1 => 1.4.1
- jsonwebtoken: ^9.0.0 => 9.0.0
- mathjs: ^11.8.0 => 11.8.0
- microtime: ^3.1.1 => 3.1.1
- migrate: ^2.0.0 => 2.0.0
- moesif-nodejs: ^3.3.3 => 3.3.3
- multer: ^1.4.5-lts.1 => 1.4.5-lts.1
- node-fetch: ^2.6.11 => 2.6.11
- nodemon: ^2.0.22 => 2.0.22
- prompt: ^1.3.0 => 1.3.0
- react-dom: ^18.2.0 => 18.2.0
- rimraf: ^5.0.1 => 5.0.1
- root-path-electron: ^1.3.3 => 1.3.3
- sudo-prompt: ^9.2.1 => 9.2.1
- supports-color: ^9.3.1 => 9.3.1
- ts-jest: ^29.1.0 => 29.1.0
- ts-node: ^10.9.1 => 10.9.1
- typescript: 5.0.4 => 5.0.4
- uniqid: ^5.4.0 => 5.4.0
- url: ^0.11.0 => 0.11.0
- wait-on: ^7.0.1 => 7.0.1
- webpack: ^5.84.1 => 5.85.0
- webpack-cli: ^5.1.1 => 5.1.1
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.