Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
graphql-type-uuid
Advanced tools
UUID scalar type for GraphQL.js.
This package exports a UUID scalar GraphQL.js type:
import GraphQLUUID from 'graphql-type-uuid';
You can use this in a programmatically-constructed schema as with any other scalar type:
import { GraphQLObjectType } from 'graphql';
import GraphQLUUID from 'graphql-type-uuid';
export default new GraphQLObjectType({
name: 'MyType',
fields: {
myField: { type: GraphQLUUID },
},
});
When using the SDL with graphql-tools, define GraphQLUUID
as the resolver for
the corresponding scalar type in your schema:
import { makeExecutableSchema } from 'graphql-tools';
import GraphQLUUID from 'graphql-type-uuid';
const typeDefs = `
scalar UUID
type MyType {
myField: UUID
}
`;
const resolvers = {
UUID: GraphQLUUID,
};
export default makeExecutableSchema({ typeDefs, resolvers });
If you happen to be looking for a JSON scalar GraphQL.js type, please check graphql-type-json, in which this project is heavily inspired.
FAQs
UUID scalar type for GraphQL.js
We found that graphql-type-uuid demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.