{"action":"created","issue":{"url":"https://api.github.com/repos/tgriesser/knex/issues/1523","repository_url":"https://api.github.com/repos/tgriesser/knex","labels_url":"https://api.github.com/repos/tgriesser/knex/issues/1523/labels{/name}","comments_url":"https://api.github.com/repos/tgriesser/knex/issues/1523/comments","events_url":"https://api.github.com/repos/tgriesser/knex/issues/1523/events","html_url":"https://github.com/tgriesser/knex/issues/1523","id":161320401,"number":1523,"title":"TypeError: Converting Circular structure to JSON","user":{"login":"eslachance","id":643344,"avatar_url":"https://avatars.githubusercontent.com/u/643344?v=3","gravatar_id":"","url":"https://api.github.com/users/eslachance","html_url":"https://github.com/eslachance","followers_url":"https://api.github.com/users/eslachance/followers","following_url":"https://api.github.com/users/eslachance/following{/other_user}","gists_url":"https://api.github.com/users/eslachance/gists{/gist_id}","starred_url":"https://api.github.com/users/eslachance/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eslachance/subscriptions","organizations_url":"https://api.github.com/users/eslachance/orgs","repos_url":"https://api.github.com/users/eslachance/repos","events_url":"https://api.github.com/users/eslachance/events{/privacy}","received_events_url":"https://api.github.com/users/eslachance/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/tgriesser/knex/labels/More%20information%20requested","name":"More information requested","color":"d4c5f9"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-06-20T23:43:21Z","updated_at":"2016-06-21T11:38:53Z","closed_at":null,"body":"So I'm attempting to delete a row inside my psql database, a very simple structure with 4 rows + the auto ID: \r\n\r\n```sql\r\nCREATE TABLE public.tags\r\n(\r\n  id bigint NOT NULL DEFAULT nextval('tags_id_seq'::regclass),\r\n  tag character varying(32) NOT NULL,\r\n  description character varying(256) NOT NULL,\r\n  server character(18) NOT NULL,\r\n  added_by character(18) NOT NULL,\r\n  CONSTRAINT tags_pkey PRIMARY KEY (id)\r\n)\r\n```\r\n\r\nAttempting to reproduce the `.del()` example, I have the following code:  `knex('tags').where('tag', 'test').del();`\r\n\r\nI get the following error output to me: `TypeError: Converting circular structure to JSON`\r\n\r\nI'm unsure what could cause this, and how to resolve it. Any ideas?"},"comment":{"url":"https://api.github.com/repos/tgriesser/knex/issues/comments/227414658","html_url":"https://github.com/tgriesser/knex/issues/1523#issuecomment-227414658","issue_url":"https://api.github.com/repos/tgriesser/knex/issues/1523","id":227414658,"user":{"login":"eslachance","id":643344,"avatar_url":"https://avatars.githubusercontent.com/u/643344?v=3","gravatar_id":"","url":"https://api.github.com/users/eslachance","html_url":"https://github.com/eslachance","followers_url":"https://api.github.com/users/eslachance/followers","following_url":"https://api.github.com/users/eslachance/following{/other_user}","gists_url":"https://api.github.com/users/eslachance/gists{/gist_id}","starred_url":"https://api.github.com/users/eslachance/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eslachance/subscriptions","organizations_url":"https://api.github.com/users/eslachance/orgs","repos_url":"https://api.github.com/users/eslachance/repos","events_url":"https://api.github.com/users/eslachance/events{/privacy}","received_events_url":"https://api.github.com/users/eslachance/received_events","type":"User","site_admin":false},"created_at":"2016-06-21T11:38:53Z","updated_at":"2016-06-21T11:38:53Z","body":"I'd say that is most definitely something that should be made 100% obvious. It's true that all my other queries actually have a callback, but I didn't need it in this case, it wasn't in the documentation examples, and even elhigu didn't seem to have this issue... unless he just added on the .then() automatically and never thought about it? Hey I get the feeling. \r\n\r\nWell, this actually worked, so mystery solved! Hopefully you guys can document this quickly somewhere :P"}}
{"actor":{"display_login":"eslachance"}}