query meta from document.
Build for publish