MegaHydronics
MegaHydronics
CCConvex Community
Created by MegaHydronics on 12/17/2024 in #support-community
Accessing client IP address in a query/mutation
For my use case, ctx.meta.geo would be great.
7 replies
CCConvex Community
Created by MegaHydronics on 12/17/2024 in #support-community
Accessing client IP address in a query/mutation
It's for simple analytics of users' geographical distribution.
const response = await fetch(`https://ipinfo.io/${ip}/json/?token=${process.env.ipinfoToken}`)
const response = await fetch(`https://ipinfo.io/${ip}/json/?token=${process.env.ipinfoToken}`)
7 replies
CCConvex Community
Created by MegaHydronics on 12/17/2024 in #support-community
Accessing client IP address in a query/mutation
#ask-ai referred me to this post https://discord.com/channels/1019350475847499849/1281699105101451284 which answered my question.
7 replies