{"id":21410167,"url":"https://github.com/rune/postgraphile-callback-plugin","last_synced_at":"2025-03-16T17:47:04.244Z","repository":{"id":42242634,"uuid":"166938514","full_name":"rune/postgraphile-callback-plugin","owner":"rune","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-11T22:19:54.000Z","size":41,"stargazers_count":3,"open_issues_count":3,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-10T01:09:49.662Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rune.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-01-22T06:18:38.000Z","updated_at":"2023-08-20T03:59:45.000Z","dependencies_parsed_at":"2023-01-27T08:00:47.172Z","dependency_job_id":null,"html_url":"https://github.com/rune/postgraphile-callback-plugin","commit_stats":null,"previous_names":["runeai/postgraphile-callback-plugin"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rune%2Fpostgraphile-callback-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rune%2Fpostgraphile-callback-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rune%2Fpostgraphile-callback-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rune%2Fpostgraphile-callback-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rune","download_url":"https://codeload.github.com/rune/postgraphile-callback-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243910726,"owners_count":20367538,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-22T17:38:03.332Z","updated_at":"2025-03-16T17:47:04.206Z","avatar_url":"https://github.com/rune.png","language":"TypeScript","readme":"# postgraphile-callback-plugin\nYou can pass callback functions to this plugin, which'll then be called when specific postgraphile hooks are triggered. The ability to pass such callbacks are useful for logging and many other things.\n\nRight now, it only works for postgraphile:http:handler and postgraphile:http:end, which are called respectively when a GraphQL request is received and a result is just about to be sent back.\n\nUse as:\n\n```\nconst { postgraphile, makePluginHook } = require(\"postgraphile\")\nconst { default: callbackPlugin } = require(\"postgraphile-callback-plugin\")\n\nconst graphilePluginHook = makePluginHook([\n  callbackPlugin\n])\n\nconst graphileOpt = {\n  pluginHook: graphilePluginHook,\n  startCallbackFunction: myStartCallbackFunction,\n  endCallbackFunction: myEndCallbackFunction}\n\npostgraphile(pool, [\"mySchema\"], graphileOpt)\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frune%2Fpostgraphile-callback-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frune%2Fpostgraphile-callback-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frune%2Fpostgraphile-callback-plugin/lists"}