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
Currently, the library only identifies strings with attribute type, @id via the IsId parameter to be assigned a UUID as a scalar default
@id
IsId
export const scalarFieldValueGenerator: StrictScalarFieldValueGenerator = { Boolean: () => true, String: ({ fieldName, isId, isUnique }) => { if (isId || isUnique) { return short.generate(); } return `${fieldName} field`; }, Int: ({ isId, isUnique, seq }) => { if (isId || isUnique) { return seq; } return 10; }, Float: () => 3.14, BigInt: () => BigInt(12_345_678), Decimal: () => { throw new Error("Not support Decimal field generation"); }, DateTime: () => new Date(), Bytes: () => Buffer.from([0x80, 0xff]), Json: () => ({ key: "value", }), };
However, schemas that make use of the attribute @db.Uuid are treated a regular strings, which is a mismatched handling.
@db.Uuid
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Currently, the library only identifies strings with attribute type,
@id
via theIsId
parameter to be assigned a UUID as a scalar defaultHowever, schemas that make use of the attribute
@db.Uuid
are treated a regular strings, which is a mismatched handling.The text was updated successfully, but these errors were encountered: