Skip to content
New issue

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

Expose expiry date for mutations #181

Open
alexcarpenter opened this issue Oct 26, 2018 · 1 comment
Open

Expose expiry date for mutations #181

alexcarpenter opened this issue Oct 26, 2018 · 1 comment

Comments

@alexcarpenter
Copy link

I am looking to set an expiry date when an entry is created via a mutation (postDate + 30days).

@markhuot
Copy link
Owner

dev-master (on composer) now has the ability to set the postDate and expiryDate as unix timestamps. You can use it as follows,

mutation{
  upsertBlog(
    title:"foo",
    postDate:1514829600,
    expiryDate:1514829600
  ) {
    id
  }
}

Note: I'll leave this ticket open until this makes it in to a stable release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants