From 013be3b150b7b14369ee4189e1ebcb37e3a98541 Mon Sep 17 00:00:00 2001 From: Ernesto Perez Amigo Date: Thu, 21 Dec 2017 20:41:50 -0500 Subject: [PATCH] Updated README about when use Date Directive. --- README.md | 3 ++- README.rst | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5363cc8..a454eeb 100644 --- a/README.md +++ b/README.md @@ -468,7 +468,8 @@ And we get this output data: ``` As we see, the directives is a easy way to format output data on queries, and it's can be put together like a chain. -**NOTE**: The *date* directive take a string of tokens, this tokens are the common of JavaScript date format. +**IMPORTANT NOTE**: The *date* directive only work with datetime returned as String Type and take a string of tokens, +this tokens are the common of JavaScript date format. **List of possible date's tokens**: "YYYY", "YY", "WW", "W", "DD", "DDDD", "d", "ddd", "dddd", "MM", "MMM", "MMMM", "HH", "hh", "mm", "ss", "A", "ZZ", "z". diff --git a/README.rst b/README.rst index 50be141..575a926 100644 --- a/README.rst +++ b/README.rst @@ -510,7 +510,8 @@ And we get this output data: As we see, the directives is a easy way to format output data on queries, and it's can be put together like a chain. -**NOTE**: The *date* directive take a string of tokens, this tokens are the common of JavaScript date format. +**IMPORTANT NOTE**: The *date* directive only work with datetime returned as Graphene String Type not with normal +Graphene DateTime, Time or Date Types and take a string of tokens, this tokens are the common of JavaScript date format. **List of possible date's tokens**: "YYYY", "YY", "WW", "W", "DD", "DDDD", "d", "ddd", "dddd", "MM", "MMM", "MMMM", "HH", "hh", "mm", "ss", "A", "ZZ", "z".