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

@codeftw/future-web-graphql-date-time-resolver

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codeftw/future-web-graphql-date-time-resolver

[![npm version](https://badge.fury.io/js/%40codeftw%2Ffuture-web-graphql-date-time-resolver.svg)](https://badge.fury.io/js/%40codeftw%2Ffuture-web-graphql-date-time-resolver)

  • 1.0.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
9
increased by125%
Maintainers
1
Weekly downloads
 
Created
Source

Date Time Resolver for GraphQL

npm version

Installation

npm install @codeftw/future-web-graphql-date-time-resolver

Usage

  • Add scalar DateTime to your Schema
scalar DateTime

type Query {
  ...
}

type Mutation {
  ...
}
  • Import it in your resolvers and define it
import { resolverDateTime } from '@codeftw/future-web-graphql-date-time-resolver';

export const resolvers = {
  Query: {
    ...
  },
  Mutation: {
    ...
  },
  DateTime: resolverDateTime,
};
  • Use it in your types, queries, mutations
type Person {
  name: String
  birthday: DateTime
}

FAQs

Package last updated on 11 Feb 2018

Did you know?

Socket

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.

Install

Related posts

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