Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@synatic/noql

Package Overview
Dependencies
Maintainers
3
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@synatic/noql - npm Package Compare versions

Comparing version 2.0.3 to 2.0.4

32

lib/types.ts

@@ -199,2 +199,34 @@ import type {Document, Sort} from 'mongodb';

requiresAs?: boolean;
/** Specifies if this query requires a group by */
forceGroup?: boolean;
jsonSchemaReturnType: JSONSchemaTypeName | SchemaFn;
//TODO Rk, would be good to have a description here and auto generate docs
}
export type JSONSchemaTypeName =
| 'string'
| 'number'
| 'integer'
| 'boolean'
| 'object'
| 'date'
| 'string[]'
| 'number[]'
| 'integer[]'
| 'boolean[]'
| 'object[]'
| 'date[]'
| 'null';
type SchemaFn = (params: any) => {
/** Specifies if there is a json schema type returned or the name of the field that defines the type */
type: 'fieldName' | 'jsonSchemaValue';
jsonSchemaValue?: JSONSchemaTypeName;
fieldName?: 'string';
/** Specifies if the result will be an array of the field type, should not apply to jsonSchemaValue */
isArray?: boolean;
};
export type JsonSchemaTypeMap = {
[key: string]: JSONSchemaTypeName;
};

2

package.json
{
"name": "@synatic/noql",
"version": "2.0.3",
"version": "2.0.4",
"description": "Convert SQL statements to mongo queries or aggregates",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -7,3 +7,3 @@ # NoQL - Not Only SQL

For full docs and a playground to try NoQL out, vist [https://noql.synatic.dev/](https://noql.synatic.dev/)
For full docs and a playground to try NoQL out, visit [https://noql.synatic.dev/](https://noql.synatic.dev/)

@@ -10,0 +10,0 @@ ## Installation

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc