Collection helpers problem


i have a problem in a collection page i made some collection helpers (for example : api/y.js ) and i imported an other collection exported by a package named xcollection in this page by

import {x} from “meteor/xcollection”

when i do the console log(x) just below the import (in y page) it displays in the Terminal the true result but if i console log it in one of the the current schema helpers (in y page) it tell me that x is undefined.

please help me

Post the code in question