Socket
Socket
Sign inDemoInstall

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

Package Overview
Dependencies
3
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

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)


Version published
Maintainers
1
Created

Readme

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

Last updated on 11 Feb 2018

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc